Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-08-15 06:39:44

gwlco
Member
From: Pensacola, Fl.
Registered: 2012-10-24
Posts: 337
Website

unable to change the order in the cart

I would prefer to have the "Print" option first, then the "Digital Downloads" but here is what I get:
search page
and here is the pricing scheme:
search page
and the product priority listing:
search page

I cannot figure out how to change the order:

http://garylittle.com/home

Offline

#2 2016-08-15 07:22:56

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

Re: unable to change the order in the cart

Did you try resetting the cart?
Which pricing profile is this for? The one gallery I looked at had two options: Digital Download and Print. I didn't see all those others.


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

Offline

#3 2016-08-15 08:22:52

gwlco
Member
From: Pensacola, Fl.
Registered: 2012-10-24
Posts: 337
Website

Re: unable to change the order in the cart

I don't see  how to reset the cart. The pricing module is "PREMIUM" as shown in the second graphic above.
This is the gallery you should look at: http://garylittle.com/galleries/pcolaba … spelicans/

Offline

#4 2016-08-15 08:24:26

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

Re: unable to change the order in the cart

Reset link on the main cart dashboard page


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

Offline

#5 2016-08-15 10:30:32

gwlco
Member
From: Pensacola, Fl.
Registered: 2012-10-24
Posts: 337
Website

Re: unable to change the order in the cart

All that does is take me to the home page...
Everything still the same.
???

Offline

#6 2016-08-15 11:06:57

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

Re: unable to change the order in the cart

I suggest sending Backlight admin credentials to Ben then.


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

Offline

#7 2016-08-16 19:58:27

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: unable to change the order in the cart

Thanks for the details Gary.  I have found the cause of the problem, but not yet thought of a solution.  Read on for a fairly technical explanation...

The cart returns a list of products, ordered as per the configuration. So let's say you had three products, Print, Digital Copy and Printed Mugs, configured with order 1, 2 and 3 respectively.   Prior to the last update, these were indexed by a text name, so the Javascript would see this:

print => Print (with all of the details)
digital copy => Digital Copy (with all of the details)
mugs => Printed mugs (with all of the details)

I made an update to replace the textual index with the numeric ID.  This was to make the code more robust, and fix issues caused by punctuation in product names.
That leaves the returned list as something like:

2 => Print (with all of the details)
1 => Digital Copy (with all of the details)
7 => Printed mugs (with all of the details)

The problem is that when indexed by numbers, JavaScript ignores the order of the items returned (Print, Digital, Printed Mugs) and instead orders on the numerical number.. this is a quirk that I'll need to find a solution for.

Offline

#8 2016-08-31 03:35:59

gengl
Member
From: Lexington, SC
Registered: 2013-11-24
Posts: 80
Website

Re: unable to change the order in the cart

I'm also experiencing the same problem, as I'm sure others are. Looking forward to the solution.

Offline

Board footer

Powered by FluxBB