Jump to content

Multiple download tabs on product page


Recommended Posts

Hi, people.

 

I have faced a small problem: I want product page to display different files available for download depending on what attributes are chosen in combination options. 

 

Is it possible to do without installing any modules?  

 

Thx in advance

Link to comment
Share on other sites

and what if someone will switch attributes? you want to switch visibility of tables too?

 

Yes, exactly. 

 

Otherwise, list of files will be to long.

 

I was thinking to put attribute name in the beginning of file name that has to show up, e.g.: customer sets attribute Type to "DIN" and all attached files that start with "DIN" show up.  

Link to comment
Share on other sites

Any ideas?

 

The problem right now is to get the proper attribute name from an array. But I am really bad with arrays in smarty...

 

I have tried this code:

{foreach from=$attachments item=attachment name=attachements}
{foreach from=$combinations item=$attributes_values} 
{if $attributes_values == $attachments_name}

However it doesn't work. 

Link to comment
Share on other sites

  • 2 years later...
  • 3 weeks later...

Hi dimitris22,

 

Did you check the changelog for that version PS 1.6.1.16 here?

http://build.prestashop.com/news/prestashop-1-6-1-16-maintenance-release/

 

And more detailed here:

https://github.com/PrestaShop/PrestaShop/pulls?utf8=%E2%9C%93&q=is%3Apr%20is%3Amerged%20milestone%3A1.6.1.16

 

I read only 3 items regarding products about: combinations, pricing and pagination...

 

Where did you download the "Multiple download tabs on product page Module" v 2.0 ?

 

Cheers

Xab

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...