Re: Editing cart contents -- esp products with attributes
Hi Ajeh
I have not yet done so but will tomorrow. Its 2am here atm.
Generally I try to get an understanding of what something does before committing to it, but I am still very much on the J curve with ZC, and have yet to fully fathom the placement of code.
Thanks for your feedback and guidance.
Re: Editing cart contents -- esp products with attributes
If a customer does not choose any options when adding an item to the cart, the the id is numeric so the option to edit the item in the cart is not offered. However, the customer may want to go back and select an option.
I've messed around a bit with this and haven't found a way to offer the chance to go back and add options if none were chosen initially.
Is there a way around this?
Note: forcing one option to be selected initially works, but is not appropriate in this case.
Thanks!
Re: Editing cart contents -- esp products with attributes
I i installed this mod, but whether it was me or the mod i found that the product image was being displayed twice and so was the product title link.
I have fixed this by editing the following code in tpl_shopping_cart_default.php around line 85.
PHP Code:
//================================Start of Edit_Cart mod Justin =================================================================
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
//===============================================================================================================================
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle">
<?php echo $product['productsName'];
if(!empty($product['attributes'])) {
echo '<br />[click to edit]';
}
echo '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
//================================End Edit_Cart mod Justin =================================================================
That is the code according to the mod, but i changed to the following and now things work fine:
PHP Code:
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle">
<?php
if(!empty($product['attributes'])) {
echo '<br />[click to edit]';
}
echo '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
Justin if you still read this it maybe worth modifying your files with this edit if you wish to.
Re: Editing cart contents -- esp products with attributes
I think I've seen this on another store but is there a way to make the image in the shopping cart link to a new version of the item (as the cart is un-modded) and add a link that would edit the item in the cart, ideally reading "Edit Item"?
Re: Editing cart contents -- esp products with attributes
Hi all
Lines 117-155 in tpl_product_info_display provides for two button options, namely
BUTTON_IMAGE_EDIT_CART_CONTENTS
BUTTON_IMAGE_IN_CART
but where the latter button is defined exactly the same as
BUTTON_ADD_TO_CART
which makes me wonder Why?
However, upon changing the define of BUTTON_IMAGE_IN_CART to something like "Add another to cart", I find the revised button does not load no matter what I do, which also makes me wonder Why?
I made this change thinking that BUTTON_IMAGE_IN_CART would have been called after editing/updating a product in cart and then pressing the "Continue Shopping" button, but where "Continue Shopping" is in effect a glorified "Back" button.
So the reason for this post is to discover whether anyone else has made such a change to BUTTON_IMAGE_IN_CART and has got their changed button to load and under what circumstance(s).
Thanks in advance.
ps ScriptJunkie - Thanks for your prompt reply regarding this matter in another thread.
pps otherwise Edit_Cart1.3 works fine for me in 139h.
Re: Editing cart contents -- esp products with attributes
Fabulous mod! It's working just as it should but I've got one nit-picky question.
Is there anyway to display the "Quantity in Cart" on products that have attributes, are in the cart and NOT being edited?
I've looked on a couple of different sites with this mod installed but it isn't showing on any of those sites either.
I've adjusted the code on tpl_product_info_display.php in my custom folder to read:
PHP Code:
<div id="cartAdd">
<?php if ($display_qty != '' and ($products_qty_box_status == 0 or $products_quantity_order_max == 1)) {
echo $display_qty;
}
elseif ($display_qty != '' and ($products_qty_box_status != 0 or $products_quantity_order_max != 1)){
echo $display_qty;
echo $display_button;
}
else {
echo $display_button;
}
?>
</div>
The $display_qty will show on products that meet the first "if" statement criteria (and don't have attributes), but I get nothing on products with attributes that are in the cart. :frusty:
I would really appreciate any guidance anyone can provide.
Thanks in advance (and sorry for all the abandoned carts Justin).
Re: Editing cart contents -- esp products with attributes
Sorry - I've been looking at the code that I've been working on all day and I just realized the reason that it's not displaying "Quantity in Cart" has nothing to do with the "Add to Cart" code - it's because for some reason products that are in the cart that have attributes are not being recognized by tpl_product_info_display.php as such unless you're in "edit mode" (ie the "edit cart contents" button is showing).
Could this do with the edits to tpl_shopping_cart_default?
Hmmm....
Re: Editing cart contents -- esp products with attributes
Quote:
Originally Posted by
justinhunt
I updated the edit cart mod about 2 weeks ago, but it took a while to be approved by the zen cart team.
This change is basically to add support for Ceon URI mapping (thanks Damian), and a tidy up of the documentation.
Edit Cart is now known to support two SEO mods:
Ceon URI mapping and Ultimate SEO
Justin
Hi,
I am using Ultimate SEO urls and the attributes string is still being appended to the urls like http: //mysite.product-name:attributesstring.html for items with attributes in the shopping cart.
Has anyone got a solution for this?
Re: Editing cart contents -- esp products with attributes
I just wanted to report that I have installed this mod on my ZC v1.3.9h and it DOES work...it works absolutely beautifully!!!
I did have an issue where I had to delete the commented section from the beginning of the code (the part where Justin begins =====) additionally, for some reason I had 3 instances of the code to add the edit text on the page. I simply removed the upper and lower code and left the middle code there.
I am not sure if these issues were my fault or not, but I figured I'd mention them here just incase someone else makes the same errors I did.
Thanks very much for this feature justin as my site relies very much on attributes and customers are very likely to change some of them before completing their orders.
:clap:WONDERFUL MOD!!!:clap:
Re: Editing cart contents -- esp products with attributes
Has anyone been able to get this to work with Simple SEO? I have noticed that when you delete something from the cart it gives you the long code - http://corset.ie/zen/shopping_cart/p...b3b62b1c15e04a - but still is unable to adjust it useing this mod. Shame, would really love it to work.:(