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 04-16-2007 06:44:38

mark_stylistic
Member
Registered: 02-09-2007
Posts: 17

editing the "Add to your Shopping Cart or Wish List" section

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

 

#2 04-16-2007 16:11:01

carasmo
Member
From: Florida
Registered: 10-07-2002
Posts: 147
Website

Re: editing the "Add to your Shopping Cart or Wish List" section

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.

Code:

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

Code:

if (empty($show_wl)) {

is this:

Code:

     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

Code:

     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

Code:

 } else {

replace this chunk

Code:

     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

Code:

     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:

Code:

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

 

#3 04-16-2007 16:15:35

carasmo
Member
From: Florida
Registered: 10-07-2002
Posts: 147
Website

Re: editing the "Add to your Shopping Cart or Wish List" section

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

 

#4 04-23-2007 06:25:20

mark_stylistic
Member
Registered: 02-09-2007
Posts: 17

Re: editing the "Add to your Shopping Cart or Wish List" section

Hi carasmo,

Thank you for taking the time to reply, I will try this out today.


Kind regards,
Mark.

Offline

 

#5 04-26-2007 06:10:41

mark_stylistic
Member
Registered: 02-09-2007
Posts: 17

Re: editing the "Add to your Shopping Cart or Wish List" section

Hi, finally got time to try this out today and it worked great, thank you for your help.


Mark.

Offline

 

Board footer