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.
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
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:
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
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
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
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
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