Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-09-03 13:06:53

steveblair
New Member
Registered: 2017-09-03
Posts: 2

Cart - Delivery Country

Hi there...first time user trying to set up my site, and I was wondering if someone could answer the following:

Within the cart module, is it possible to set a default "Delivery Country" (or remove that field entirely) from the "view cart" screen? All of our sales are for local events, and shipping is primarily by pickup at the actual venue, so the field isn't really that relevant to us.

Any help would be appreciated.  Thanks!

Offline

#2 2017-09-03 13:48:52

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 15,062
Website

Re: Cart - Delivery Country

If you don't need the Delivery Country field, you can hide that with custom css.

p.delivery-country {
	display:none;
}

and if you don't need Delivery State either:

p.delivery-country, p.delivery-state {
	display:none;
}

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Pangolin test site, Backlight 1.1.1 test site

Offline

#3 2017-09-03 22:26:45

steveblair
New Member
Registered: 2017-09-03
Posts: 2

Re: Cart - Delivery Country

Awesome! Thanks.

Offline

#4 2018-11-04 23:46:28

DonWa2
Member
Registered: 2015-11-03
Posts: 58

Re: Cart - Delivery Country

Hi Rod,

I used the suggested CSS to hide the delivery country, delivery state, and delivery method to build a cart for a local hands-on workshop, since those obviously don't apply to the situation. https://quatrainfotographic.com/winter-workshops

p.delivery-country, p.delivery-state, p.delivery-method {
    display:none;
}

I added it to the the class of the "Register Here" Button
<button class="add-to-cart delivery-country delivery-state delivery-method" data-item="Winter Workshop" data-name="Adobe® Lightroom® Unmasked — Detroit
Thu 21 Feb ›› Sat 23 Feb 2019" data-price="LRWinterWorkshop" data-thumbnail="_images/jpg/backlight/DJW_20170704_MaskedKid_IRBW.jpg">REGISTER HERE <i class="fa fa-external-link" aria-hidden="true"></i></button>

However, if I go to a cart supported gallery and queue up a product for purchase, then the all those delivery options are still absent from the purchase. In a case such as this, I need the shipping options to appear.
https://quatrainfotographic.com/quires/ … ed-prints/

I guess I'm looking for some specific code to enable the cart to display "with" and "without" shipping options. I've cleared the cart, cleared history in my browser, and still produce the problem.

Any insight is greatly appreciated.

Offline

#5 2018-11-05 00:31:34

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 15,062
Website

Re: Cart - Delivery Country

the custom css you're using applies to the cart only (p.delivery-country means that the css will be applied to paragraph elements with the class "delivery-country").

Adding the classes to the button element doesn't do a thing since adding classes there would apply to the button itself, not the cart.

I don't think there is any way to turn those fields off or on depending on what the person is buying. The only way is to have separate carts for each, and that means separate sites.

you could create a workshops site in a subdomain: workshops.quatrainfotographic.com for example. Install Backlight to the subdomain. It can have the same look too, just export your templates from one site and import them into the other.
then apply the custom css in the Workshops site but not your regular site.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Pangolin test site, Backlight 1.1.1 test site

Offline

#6 2018-11-05 06:22:22

DonWa2
Member
Registered: 2015-11-03
Posts: 58

Re: Cart - Delivery Country

OK, thanks very much for the clarification, Rod.
I was thinking that a separate site might be needed to split the task with the cart functionality.

Offline

#7 2018-11-05 09:40:02

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 15,062
Website

Re: Cart - Delivery Country

I find it helpful to have a separate site dedicated to workshops too.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Pangolin test site, Backlight 1.1.1 test site

Offline

Board footer

Powered by FluxBB