Re: Editing cart contents -- esp products with attributes
hi,
I have tried this mod, and it is great.
However, there are some suggestion which may make it better:
1. Is it possible to put a link in the cart page, which link "Edit Product Option" just besides the product name or else where.
However, the link is NOT link back to the product page, it can be a popup page, and it only show the product option.
so that buyer DO NOT need to go back to the product page and reload the whole page.
2. if using the 1 suggestion, there is no need to worry about the SEO link problem.
3. if using the 1 suggestion, there is NO need to modify the cored product info page, else well else the shopping cart tpl.
it is supposed to add ONE line like this:
<a href="update cart page url">Edit Product Option Here</a>
sorry that i don't know too much php, but i guess it is more easy for the future upgrade and modification.
hope Justin can take my suggestion in the new release.
Re: Editing cart contents -- esp products with attributes
Thanks for the tip. I guess something like this could be done.
Personally i do not see a great deal of gain in it, because there is no real problem with how it works now. Admittedly though a separate page soley for editing option attributes, might be useful.
Thanks for the idea.
Re: Editing cart contents -- esp products with attributes
Quote:
Originally Posted by
justinhunt
Thanks for the tip. I guess something like this could be done.
Personally i do not see a great deal of gain in it, because there is no real problem with how it works now. Admittedly though a separate page soley for editing option attributes, might be useful.
Thanks for the idea.
hi,
I am not if other store have this problem.
but for my store, we are selling radio control toys.
many buyer will buy TWO same item, but with different option.
say, he may add product A with option 35Mhz to the cart.
later on, on the checkout page, he may want to buy another one.
normally, they will click on the item link in the shopping cart page.
in this case, they will add the SAME item, but with another option.
however, for the current edit cart, people click on the item link.
it will MODIFY the current item instead of ADD a NEW item.
another quick way is seperate the EDIT option link and Item link in the shopping cart page.
however, when i try to modify your code, it seems that you check user is click "from the cart page" in order to determinate it should be NEW item or modify item.
by the way, if i need the mod that i mention, i willing to pay for this.
can you write it for me?
Re: Editing cart contents -- esp products with attributes
OK, I see the issue. If they click on the link in the shopping cart page, it shows them the edit options page for that cart item.
But you want them to be able to choose from the cart either
i) Edit the item
OR
ii) Add another of those items, (and be able to set a different set of options for it)
(Please correct me if I didn't get it)
You are right that the current mod, defaults to Edit Mode if the user clicks on the item title in the cart. To add an "Add another of these" button as well as the current "Edit options" link. It is not a very big job.
So small I do not think I would charge for doing it. But I am really busy and can't committ myself to providing decent support. Which is the other reason why I won't charge for it. (It is also the reason I haven't released any of my other mods. Is that bad?)
When do you need it by?
Re: Editing cart contents -- esp products with attributes
thanks for your quick response.
I think add a link in the cart page:
[Edit This item Option]
is good.
If buyer clikc on this link, then he is supposed to EDIT the current item which is in the cart.
If the buyer click on the item image or the name (that what the current zen cart do)
then he is suppose to add a NEW item, rather than UPDATE the product option.
Sorry that I don't want to force you to do that...
acutally, i just want to make some suggestion.
you are always welcome to do it if you are free.
i just want to get this mod quick as i really need it.
for the money, i just think that we can't give any support to all great programmer, like you.
you may treat it as donation rather than "real charge for me"
by the way, i really looking for the mod that i want, which is a seperate page to modify the product option.
as it can give much better shopping experience to the buyer when they edit the option.
they will clear to notice that they are EDIT the option, and won't be confuse.
also, for the upgrade, it is really much more easier, as i know many people already modified that prodcut info template.
again, all of the above is just my personal suggestion~~
^####################^
Re: Editing cart contents -- esp products with attributes
hello there,
i have a problem with the edit_cart module:
- clicking on a product (with attributes) the product page appear, with the "edit product" button
- now, when you change an attribute, everything goes well, the product is updatet with the new attributes.
but if i DONT change any of the attributes and click "edit product", the products gets deleted from cart.
i've been searching about 4 hours for the error, but can't find nor fix it ^^
can someone help me ?
lukas
Re: Editing cart contents -- esp products with attributes
ok solved it on my own:
do the following changes in /includes/extra_cart_actions/edit_cart_item.php:
arround line 176:
1. replace
Code:
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids)), $real_ids);
with
Code:
if ($_POST['edit_item_id'] != zen_get_uprid($_POST['products_id'], $real_ids))
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
else
$_SESSION['cart']->add_cart($_POST['products_id'], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids)), $real_ids);
arround line 210
2. replace
Code:
//remove the existing item
$_SESSION['cart']->remove($_POST['edit_item_id']);
with
Code:
//remove the existing item
if ($_POST['edit_item_id'] != zen_get_uprid($_POST['products_id'], $real_ids))
$_SESSION['cart']->remove($_POST['edit_item_id']);
actually i didn't get the exact logic behind it, but it should work :)
cheers,
lukas
Re: Editing cart contents -- esp products with attributes
Thanks Lukas
Actually I could not reproduce that error myself, but hope to be able to have a another crack at it soon. In the meantime thanks for posting the code. It is a big help.
Justin
Re: Editing cart contents -- esp products with attributes
Hi there Justin and everyone else
i've installed this on a shop running with Price by Attribute...
Ok everything is installed nicely, but when i get back to my cart it still adds a new product on top of the edited product...
I uploaded everything for sure. But the edit button just seems to work like the old Add to Cart button!
www.bluedclothing.com/shop/
shop needs to be delivered soon... :-(
Thanks in advance for any help provided.
Jonathan
Re: Editing cart contents -- esp products with attributes
Hi Jonathan,
please post lines 175-177 and 209-211 of your /includes/extra_cart_actions/edit_cart_item.php.
to see if the relevant changes were made...
Lukas