Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Gift Wrap change layout in cart
Author « Topic »  

Steved
Ecommerce Template Guru

United Kingdom
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 11/21/2020 :  00:34:31  
Hi,

I think the layout of the gift wrap option in the cart is a little confusing and I'd like to change it.
Hoping someone can help with the following:

1. How can I change the default dropdown to YES?
It seems to me that if someone has clicked add gift wrap to get to this page this should be the default.
Only if you change you mind later would you need NO.

2. How can I move that dropdown and text to be first.
I think people miss it being last. You'll see from the image below that I've had to include initial text in the gift message box to clarify.

Thanks,

Steve

[img]https://www.stevedix.com/ect/gift-wrap-2.png[/img]

Vince
Administrator

42761 Posts

Posted - 11/21/2020 :  01:29:46  
Hi Steve
I did check another popular shopping cart system and it seems that their cart doesn't have the Gift Wrap default on either. I think if you always set to on then those that want to go back and remove Gift Wrap may be confused as it will appear that even after selecting to not have gift wrap and clicking update, when you go back it will appear to be selected again.
But if you want to make the changes open inccart.php in notepad and search for "xxGifWra". That will take you to the code where the gift wrap options are displayed. A bit below that you will find...
($rs['cartGiftWrap']!=0 ? ' selected="selected"' : '')
...and if you change that to...
(TRUE ? ' selected="selected"' : '')
...then the select will default on. You can change the order of the columns there too.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Steved
Ecommerce Template Guru

United Kingdom
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 11/21/2020 :  01:49:16  
Hi Vince,

I think you may well be right regarding on or off so maybe I'll just rearrange the columns. At least that way it'll be more obvious that a selection is required.

I suppose there's no way to move them with css then?
If not I'll change the code.

Thanks,

Steve

Vince
Administrator

42761 Posts

Posted - 11/21/2020 :  11:13:33  
Hi Steve
quote:
I suppose there's no way to move them with css then?
Well, I tried a test here and it looks good so far. I added...

div.giftwrapyes,div.giftwraplineyes{
float:left
}
div.giftwrapmessage{
float:left;
clear:both;
}
div.giftwrapbuttons{
clear:both;
}

You would have to try it on different devices and different resolutions to make sure it holds together ok.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Steved
Ecommerce Template Guru

United Kingdom
1022 Posts

Pre-sales questions only
(More Details...)

Posted - 11/21/2020 :  14:01:08  
Thanks Vince,

I think I can probably get this to work. I need to tidy up the css for the text area and some of the widths of the divs but I think this will do what I need it to.
Thanks for taking the time to help work out a solution for me.

Steve
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000