Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-24-2007 10:51:33

9000world
Member
From: Denver
Registered: 06-19-2007
Posts: 37
Website

Simplify Add to Cart / Item Quantity

Hi,

Does anyone know if it's possible to remove/simplify all of the text associated with the Add to Cart button? For the products I sell there is no need for customers to every need more than 1 item, so giving them the option to buy more than 1 is just confusing to them.

I would like to default to "Item Quality: 1" and loose all of the "required fields" and "Enter the appropriate quantity" language.

i.e. delete the following around the Add to Cart button:
  - All required fields are marked with a star (*). Click the 'Add To Cart' button at the bottom of this form to proceed.
  - Enter the appropriate quantity for this item below

Thanks much.

Offline

 

#2 07-24-2007 11:10:22

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Simplify Add to Cart / Item Quantity

For your first question edit the front end include for the shopping cart at Home > ClickCarPro > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes > Shopping Cart/Wish List Display and change this code from a text box to a hidden field with a value of 1:

Code:

               print '<td class="khxc_sorttable">';
               print '<p class="hidden"><label for="' . $app . '--updatecart--quantity--';
               print $cartdata['randid'] . '">Quantity</label></p>' . $eol;
               print '<input class="khxc_quickfield" type="text" name="';
               print $app . '--updatecart--quantity--' . $cartdata['randid'];
               print '" id="' . $app . '--updatecart--quantity--' . $cartdata['randid'];
               print '" value="' . $cartdata['quantity'] . '" size="5" maxlength="5" />' . $eol;
               print '</td>' . $eol;

the secoud question I belive would be in the Form Header: in the same XHTML Include and Messages section.

John

Last edited by dh783 (07-24-2007 11:12:32)

Offline

 

#3 07-24-2007 13:21:18

9000world
Member
From: Denver
Registered: 06-19-2007
Posts: 37
Website

Re: Simplify Add to Cart / Item Quantity

Thanks for the reply.

Sorry that I wasn't more specific, but I meant to refer to the Product Page "Add to Cart" and "Item Quality" code.

Offline

 

#4 07-24-2007 14:17:29

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Simplify Add to Cart / Item Quantity

If you go to Home > Kryptronic Hybrid X Core > Database: Connections, Backups and Raw Admin > Raw Database Admin > khxc_formfields and click update for ccp0.prodaddtocart.quantity and change it's Type from TEXTBOX-SMALL to HIDDEN-REG which will hide the quanity field on the products page.

John

corrected the mistake in which database to look in.

Last edited by dh783 (07-25-2007 06:00:11)

Offline

 

#5 07-24-2007 14:43:53

9000world
Member
From: Denver
Registered: 06-19-2007
Posts: 37
Website

Re: Simplify Add to Cart / Item Quantity

Ok, so, thanks again for your help John, and sorry for being a pest, but that id doesn't seem to be on the list.

I went to Home > Kryptronic Hybrid X Core > Database: Connections, Backups and Raw Admin > Raw Database Admin: khxc_namespaces and clicked browse and I see the following on tab3:
...
ccp0.procgwresp
ccp0.prodall
ccp0.prodbest
ccp0.prodfeature
ccp0.prodidx
ccp0.prodlist
ccp0.prodnew
ccp0.prodsearch
ccp0.prodsearchp
ccp0.prodshow
ccp0.prodshowopt
ccp0.prodspec
ccp0.sendpass
...

But no ccp0.prodaddtocart.quantity

Perhaps I'm overlooking it or don't have the same version.

Mike

P.S. I'm afraid to ask how you knew how to do this. It seems to be unbelievable obscure. Expecially for a product with no useful reference manual.

Offline

 

#6 07-24-2007 15:29:14

dh783
Member
From: Avondale, Arizona
Registered: 04-06-2005
Posts: 6233
Website

Re: Simplify Add to Cart / Item Quantity

That was my fault it's khxc_formfields, sorry.

John

Offline

 

#7 07-24-2007 15:37:08

9000world
Member
From: Denver
Registered: 06-19-2007
Posts: 37
Website

Re: Simplify Add to Cart / Item Quantity

Perfect. Thanks much!

Offline

 

#8 08-28-2007 16:32:49

design4dotcom
Member
From: Orlando, Florida
Registered: 02-08-2007
Posts: 4
Website

Re: Simplify Add to Cart / Item Quantity

I have a similar request, so I thought I would re-open this ticket. 

I want to remove the quantity field from this page.
http://www.theweddinggreenhouse.com/sto … dingFavors

I think it's the category page.  I'm very new to this program and I'm not a programmer. 

I looked at the code above where someone says to find the code on that page, but once I find it, I would have no idea what to do with it.  If someone can help me (show me) what it should look like AFTER I make the change, I would greatly appreciate it.

Michelle

Offline

 

#9 07-15-2010 10:06:58

jensme
Member
Registered: 04-29-2010
Posts: 392

Re: Simplify Add to Cart / Item Quantity

I have a similar question.  I want to remove the *Required only from the product detail page.  Probably with some kind of if/then?

Offline

 

Board footer