close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update Cart not updating? Is it possible to simply have a "Delete" option next to each cart item?

Thread began 2/15/2017 7:48 pm by Nathon Jones Web Design | Last modified 2/17/2017 2:10 pm by Ray Borduin | 645 views | 32 replies |

Nathon Jones Web Design

Update Cart not updating? Is it possible to simply have a "Delete" option next to each cart item?

I'm trying to add the facility for a customer to be able to remove items from their cart. I've tried installing the Update Cart button but this isn't updating the cart. Is it possible to just add a Delete option alongside each cart item?

Will post login details and URL in next post as you can't insert private messages in the initial post on this board.

Page is attached though.

Thank you.
NJ

Sign in to reply to this post

Nathon Jones Web Design

Log in details...

Sign in to reply to this post

Ray BorduinWebAssist

Ecart 6 has the option to add a "remove" link to the cart display. It actually has one by default that is only displayed on mobile devices, but you can update the class to always show it instead of the delete checkbox which is there by default.

Sign in to reply to this post

Nathon Jones Web Design

Where is that option? I don't see it on the page.

Sign in to reply to this post

Ray BorduinWebAssist

It is one of the available columns you can add to your cart dispaly.

Sign in to reply to this post

Nathon Jones Web Design

How do I add that outwith the Wizard?

EDIT:
I've created a blank page and re-ran the eCart Display Manager. I don't have "Remove Link" as an option.

EDIT 2:
Ah, found it. It was already part of the cart so, therefore, wasn't available as an option. It inserts the following on the page...
<p class="eC_ItemRemove_Link max_tablet"><a href="#" onclick="waec_update('Remove','cartDC_Quantity_<?php echo $cartDC->DisplayInfo("WAUID"); ?>',this);">Remove</a></p>

I've added this to my actual cart page but clicking it doesn't remove the item. What am I missing?
Page attached.

Thank you
NJ

Sign in to reply to this post

Ray BorduinWebAssist

You have deleted all of the class="" references from your cart display. The AJAX code uses those to find the necessary areas to read and update values. The remove link is an AJAX component and that is why it stopped working. I've updated your javascript so that it works now but it does a page refresh, which it wouldn't need to if you hadn't updated the cart html and removed the class references.

In the future you can remove the .css referencing a class, but don't remove class="" definitions from the cart because they are necessary for the mobile friendly AJAX code to work properly.

Sign in to reply to this post

Nathon Jones Web Design

It has been requested before, but just a completely unstyled option for eCart Display would be really helpful.

When you say class="" definitions, do you mean things like:
<div id="eC_Checkpoint_test_Arial" class="eC_Display">
<div class="eC_Checkpoint_test_Arial">
<table class="eC_ButtonWrapper" cellpadding="0" cellspacing="0">
<tr class="eC_SummaryFooter">
<td id="cartDC_JSON_Display_GrandTotal">
<td class="eC_SummaryLabel">
etc?

Which is CSS and which are Definitions?

I don't want it to do a page refresh, I want it to work properly so I'm going to have to run through it all again. I must have applied the eCart Display Manager, and spent hours restyling the page to match the site, about 10 times over now.

I've created a blank page, template.php, and applied the eCart Display Manager to it. I've selected Updateable Cart and it has installed a cart with the elusive "Remove" link.

I've copied everything from that page to my actual cart page, view-cart.php, but it still isn't working. Clicking the "Remove" link does nothing.
Attached.

NJ

Sign in to reply to this post

Ray BorduinWebAssist

To get an un-styled cart, simply remove the cart .css file. Completely un-styled would also remove the mobile friendly media queries. It might make more sense to delete all but the media query portion of the .css file to get it un-styled.

All of the actual styling is done in the .css file. The class="" in the html is also used as identifiers.

I can't debug an attached page like that. I'll need a live url to view the page, since the php, html ,and javascript all work together to make a functional page. If you give me a url I can test it that way and tell you why it isn't working.

Sign in to reply to this post

Nathon Jones Web Design

Unfortunately, it's a bit late for that because I've clearly deleted things which I've thought were just styling but were actually definitions.

http://www.dreamcaruk.com/view-cart.php

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...