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,
Just another quick question, what is the best way to edit the "Add to your Shopping Cart or Wish List" section of the shopping cart, I want to add a big buy now button and remove the add to wish list, preferably I would like buy now under the image and also remove the quantity is this all posible and if so any guidance would be mucho appreciated.
Thanks in advance,
Mark.
Offline
Part of your question is answered here:
Removing the "Add to your Shopping Cart or Wish List" section head:
https://forum.kryptronic.com/viewtopic. … 880#p73880
Then I went to the all.css file in the skins folder in the public section and added the "display:none" on the section headers css.
.khxc_formsecthead { color: #FFFFFF; background-color: #4E7A99; padding: 2px 5px 2px 5px; margin: 0px; border-top: 1px solid #36586F; border-left: 1px solid #36586F; border-right: 1px solid #36586F; font-weight: bold; display:none; }
Can't remove the quanity box, unless there's options attached to the product, in which case you can fake it out. Search for posts by Nick regarding this.
Here's the stuff about removing the wish list button, there's a lot to read:
Remove Wish List button
https://forum.kryptronic.com/viewtopic.php?id=16440
But I think the easiest way to get that big buy now button and remove the wish list button is to do this:
Open up the form footer in the
Home > Kryptronic Hybrid X Core > Displays: Skins, Menus, XHTML Includes and Messages > Manage XHTML Includes
right after:
if (empty($show_wl)) {
is this:
print '<input class="khxc_formbutton" type="submit" name="SUBMIT" id="'; print $formid . '--SUBMIT" value="' . $buttname; print '" onclick="return DisableSubmit(\'' . $formid . '\');" />'; print ' <input class="khxc_formbutton" type="submit" name="ns" id="'; print $formid . '--CANCEL" value="Cancel" />';
replace that chunk with
print '<input class="khxc_formbutton submit" type="submit" name="SUBMIT" id="'; print $formid . '--SUBMIT" value="' . $buttname; print '" onclick="return DisableSubmit(\'' . $formid . '\');" />'; print ' <input class="khxc_formbutton cancel" type="submit" name="ns" id="'; print $formid . '--CANCEL" value="Cancel" />';
below that is another chunk to replace, right under the
} else {
replace this chunk
print '<input class="khxc_formbutton" type="submit" name="SUBMIT" id="'; print $formid . '--SUBMIT" value="' . $buttname; print '" onclick="return DisableSubmit(\'' . $formid . '\');" />'; print ' <input class="khxc_formbutton wishlist" type="submit" name="WISHLIST" id="'; print $formid . '--WISHLIST" value="Add To Wish List" />';
with this chunk
print '<input class="khxc_formbutton addtocart" type="submit" name="SUBMIT" id="'; print $formid . '--SUBMIT" value="' . $buttname; print '" onclick="return DisableSubmit(\'' . $formid . '\');" />'; print ' <input class="khxc_formbutton wishlist" type="submit" name="WISHLIST" id="'; print $formid . '--WISHLIST" value="Add To Wish List" />';
now open up your all.css style sheet and add this to the bottom:
input.wishlist { display:none; } input.addtocart { /* here you would put in styles to make that button bigger -- I'm just winging it here */ width: 150px; font: 14px/16px bold Verdana, Arial, Helvetica, sans-serif; }
In addition, you can now change the colors of the buttons, make the cancel and submit buttons a different color, float it right, etc., but you must get familiar with css.
The quick form footer also has to be changed if you intend to use that.
The text for the button, I don't know how to change that to read "buy now" . Some one else posted a question like this and it was addressed somehwere with a different way of going about it. Either way, make sure you make copies of your original files. And note, I haven't thoroughly tested this, it's not harmful updates, but it might adversly affect other parts of the site's form footers.
This is all I know so far.
Offline
Moving the buy now or add to cart under the image I don't know how to do either. I'm still waiting for my questions to be answered that are very similar to this, such as moving the options up into the product description area. Basically that's moving the form (which includes the add to cart button).
Offline
Hi carasmo,
Thank you for taking the time to reply, I will try this out today.
Kind regards,
Mark.
Offline
Hi, finally got time to try this out today and it worked great, thank you for your help.
Mark.
Offline