Jump to content

My developer says it cant be done


glow

Recommended Posts

I have this Shopping cart that allows for the creation of products with product sizes and so if a customer purchases a shirt which regular price is $10 but he/she chooses a large size which is marked @ $12 then of course the shopping cart then charges $12 - then the customer receives a purchase notification email defining the purchase of the $12 size large shirt, and thats all fine except that currently the notification email defines the shirt with $0.00 price in a row and in another row it defines the shirt size with the $12.00 price. So it basically defines the product twice, and i don't want it to do that. I want the product price and size to all be included in the same row. Attached is the .php file that needs the modification. I had a developer tell me that it could not be done. Can someone please have a look at this file and tell me if its true that what I want cannot be done! - all i want to do is merge those two rows together.  I've attached the php that is responsible for writing the tables containing the purchased items.

orderSaveAjax.php

Edited by glow
Link to comment
Share on other sites

You can add another column to each row for size or you can display the product and size in one column. Either way, you'll have to use some logic to check if the product has a size. You can't have one row with such and such columns and another row with something different though - there needs to be consistency when you're pulling this data from the database. You can put in IF statements to determine if that product has a size that's not NULL or some other value and then display it if it does or display something like "N/A" if it doesn't. You might be asking the developer to do something that is impossible like only adding a column to certain rows, but not others. 

Link to comment
Share on other sites

Unfortunately, I already have a job that keeps me busy.

However, there are many hungry freelancers out there who will take on small projects like you have. They will bid and compete

against one another. Not always wise to choose the cheapest bid, but look at their reputation and their experience to make your decision. https://www.freelancer.com/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.