Developer forum

Forum » Templates » Product template wanted

Product template wanted


Reply

As far as I can see, none of the available sites have a working product template allowing the eshop customer to select a product with multiple variants.

I have found 3 different approaches in the current eshop demo.

Only one of them (the old one, creating a picklist per variant group) seems to work - but it doesn't. If the customer selects variants in reverse order, then the previous selections are overwritten by default values.

So, could someone please take a look in mr. Dammarks secret drawers and check if there might be a working script or two? Preferably one rendering separate picklists, and one rendering a combined picklist.

 

It would be a great help if the proper folders of new sites contain templates for all available functionality. Supposedly the templates must exist somewhere among developers, so why not issue them along with the corresponding software functionality which they support?


Replies

 
Reply

Hi Claus

 

Take a look at this page:

http://ecommerce.dynamicweb.dk/Default.aspx?ID=48&ProductID=PROD24

 

Is it something like this you need ?

 

There are 2 possible ways of displaying variants in ecommerce.

 

1. Like the link above where it lists all SELECTED combinations

2. Or all POSSIBLE combinations.

 

I don't have an example for number 2 since it more or less useless.

What would happen when you run out of the 'blue' variable ?

 

But I can pretty fast make an example if that is the case.

 

// Dammark

 
Reply

Thanks, Sebastian

Yes, a combined picklist like this would do the job.

And yes, only valid combinations are relevant (i.e. those combinations selected among all possible combinatins under the "Variants" tab in the product data).

I am aware that there is no stock control without the extended variant functionality.

 

Is this template available somewhere?

One problem though: It doesn't seem to work 100%. I was unable to purchase one bike of each color. After selection, the variant picklist defaults to "nothing selected".

 

/Claus

 
Reply

Sebastian - is this termplate available anywhere, in working condition?


 

 
Reply

Hi Claus

 

Check this link:
http://ecommerce.dynamicweb.dk/Default.aspx?ID=48&ProductID=PROD24&PID=34&GroupID=GROUP14

 

// Dammark

 
Reply
Dammark wrote:

Hi Claus

 

Check this link:
http://ecommerce.dynamicweb.dk/Default.aspx?ID=48&ProductID=PROD24&PID=34&GroupID=GROUP14

 

// Dammark

Yes Sebatsian- it is the same link as in your first reply, but it is not an example to follow. I've been there, done that and burst into tears once more.

It doesn't work for me.


Once you select blue, the picklist defaults back to "nothing selected".
It is not possible for me to put a blue bike into the basket.
 

Neither a red one.

So, the presentation is fine, but the functionality is not.

Help?

 
Reply

Hi Claus

 

Yes I'm posting the same link again because it actually works.

 

If you look at the product name you will see that it changes from blue to red when you select another variant.

 

And yes the selctbox does not show what you selected, since I haven't done the JavaScript for that yet.  But you can see that in the product name.

 

When you get to the basket, all you need to do is inserting the

@LoopStart(VariantCombinations) and @LoopEnd(VariantCombinations)

 

Then your variants will be shown there as well.

 

// Sebastian

 
Reply
Dammark wrote:

Hi Claus

 

 

And yes the selctbox does not show what you selected, since I haven't done the JavaScript for that yet.  But you can see that in the product name.

 

Ach so... Yes.

I didn't see it. Most users won't, since their attention is focused on the variant, not exting as expected. But you're working on it :o)

 

This is for Variants extended.

Hope it will work better in a standard setup...

 

 

 

You must be logged in to post in the forum