Removing the "remove button.

Completed modifications to the NOP Shopping Cart. Additions, modifications, and more.

Moderators: Koibito, Stefko, Randy, Rosey

Removing the "remove button.

Postby lenny2k1 » Tue Apr 22, 2008 3:12 am

Can anyone help me out with removing the remove button from the manage cart page. I would like to have the customer go back to shop for the possibility of purchasing something else other than adding removing from the cart.
lenny2k1
WebMaster
 
Posts: 2
Joined: Tue Apr 01, 2008 11:44 pm

Re: Removing the "remove button.

Postby Randy » Tue Apr 22, 2008 11:09 am

If you remove the ability to take something out of the cart, then the only way to get rid of a selection would be to abandon the cart and start over. With online shopping, abandoning the cart means leaving the site for over an hour. Eventually the customer would become frustrated, and go somewhere else.

To remove that column, go to the managecart function in nopcart.js and find the column heading:
"<th>"+strRLabel+"</th></tr></thead><tbody>";
and remove the blue portion.

Now remove this line in the cart body:
strOutput += "<td><input type=button value=\" "+strRButton+" \" onClick=\"RemoveFromCart("+i+")\"></td></tr>";

Finally, you may have to adjust the columns at the bottom of the cart, starting with the subtotal and working down.

Randy
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Re: Removing the "remove button.

Postby lenny2k1 » Fri Apr 25, 2008 3:34 pm

Thanks Randy the only reason I want to remove the "Remove" Button is because I an having the users go to 2 conformation pages before chaging out each page has different options so I don't want them to make any changes after a certain point.
lenny2k1
WebMaster
 
Posts: 2
Joined: Tue Apr 01, 2008 11:44 pm


Return to Modifications

Who is online

Users browsing this forum: No registered users and 0 guests