Knowledgebase: Tips and Tricks
Edit options at the basket page
Posted by Wayne Smith on 22 April 2015 10:25 AM

Edit Options at Basket Page
Edit Options at the basket (Modal pop up!)

If the website is currently NOT using ajax add to cart:

On the BASK page, add this if statement at the top:

For the BASK page Javascript, click here. This will be placed in your mvscreen.js/custom.js file under


Check to see if the client is using alternative page displays for products. If they are, make either a Ready
Theme content to call on each pages (instead of editOptions), or use toolkit to call a page. This way all the
code for the “pop up” is in the same spot. 

  1. Create an item with the code editOptions, and module of cmp-mv-content
  2. Assign the editOptions item to the PROD page.
  3. At the top of the PROD details, add the following if statement:

You can add more logic to see if they have selected an option for the add-on product, which will prevent
them from checking out if they have not. Should also display an error message.

    4. I n the editOptions tab, add the following code (this can vary depending on if the client wants it
styled a certain way or not, or if they are not using bootstrap! Make sure you make the appropriate
changes. This includes the ID of the price (price-value))


Basket Contents

  1. Look for the item:options array
  2. Right AFTER the foreach loop, add the following code:

This is first checking to see if the basket item has options. If it does, the link will show.
It is going to pass the following variables to your modal pop up:

– Product Code
– Quantity currently in basket
– The current basket line item (we need this to delete it)

Using Miva9’s Add-on Product with Attributes? Use the following (REQUIRES TOOLKIT):

    3. You can change the “Edit Options” text, or add an icon (check out’s basket optionchanger, it uses a cog).

    4. Go to the Footer of the basket page and add your modal information needed (this could be a lightbox too).


Once you had added all the code/ components needed, test to make sure the following are happening:

Modal (or lightbox) is popping up with the correct product
The correct options are showing (go to the product page to compare)
Change the options, and make sure that the previous basket item is removed, and is now replaced with
the new one (aka: the options changed).

Here are some examples: CLICK HERE

(Add it to cart and edit the options on the basket page — the Price varies with the size)

 edit options at basket page.pdf (114.66 KB)
(8 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako