Access to PrestaShop corporate website
Bonjour, Invité |
| S'inscrire
Se souvenir de moi Mot de passe oublié ?
Site Map Plan du site Contact us Contactez-nous
PrestaShop e-commerce software
  813 Membres en ligne
Forum  >  English Forum  >  Third party modules  >  Fil

1 de 12
1
Répondre
Nouveau sujet
[MODULE] Product attributes as radio buttons and checkboxes

offline
Publié : 16 Octobre 2009 01:06 PM   [ Ignorer ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

This module changes the way attributes are displayed. Instead of displaying them as dropdowns, it displays the attributes in a table along with the price differences including tax. The module can be configured to also display the price differences excluding tax. Attribute groups that have attributes named “Yes” and “No” will be displayed as a checkbox with the group name as the label. All other attribute groups will be displayed as radio buttons.

By default, this module installs itself above the more information section, but it can also be displayed as a tab in the more information section by going to Modules > Positions and transplanting the module into the “Tabs on the product page” and “Content of tabs on product page” hooks, then deleting the module from the “Product footer” hook. Note that if you want to remove the module from this position, you will have to tick “Display non-positionnable hook” before you can remove it from those hooks.

You can find further instructions and see a demo of the module here.

UPDATE: v1.1

- Added option to display no prices, tax included, tax excluded or both

- Added option to hide price differences when they are zero

UPDATE: v1.2

- Fixed a few bugs

- Added option to display full price instead of just the price differences

- Added option to display label above checkboxes: enter the label at the start of the attribute group name followed by the | character

UPDATE: v1.2.1

- Fixed so that product discounts and customer discounts are now displayed in the attribute prices

UPDATE: v1.3

- Added option to display attribute images and weight

- Made description optional

- Changed so that attributes are sorted alphabetically

UPDATE: v1.3.1

- Fixed bug in calculation of price excluding tax

Download this module from my website here.

Images jointes
front.pngback.png
 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 16 Octobre 2009 07:03 PM   [ Ignorer ]   [ # 1 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Rocky …you are a champ.

thanks.
Ken

 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 17 Octobre 2009 07:49 AM   [ Ignorer ]   [ # 2 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

Updated with more tax options and the option to hide price differences of zero.

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 18 Octobre 2009 08:32 PM   [ Ignorer ]   [ # 3 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Rocky

As a special request .Is it possible to get a display of total price as a option (price +attribute +tax ).

Ken.

 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 19 Octobre 2009 01:41 AM   [ Ignorer ]   [ # 4 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

Good idea. I’ll add that as an option when I get time. In the mean time, you can do this by giving the product a price of zero and then adding all the prices as the price differences.

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 19 Octobre 2009 07:28 AM   [ Ignorer ]   [ # 5 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Thanks again Rocky.

Ken

 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 19 Octobre 2009 12:47 PM   [ Ignorer ]   [ # 6 ]
Beginner
Rank

Messages :

  • au total : 9
  • 7 derniers jours : 0
Inscrit: 2009-10-06

Hi..
Is it possible this module multiple choice.
My attributes:

Extra option 1:
cheese
tomatoes
Cheddar
Onion
Jambon
Egg

Extra option 2:
cheese
tomatoes
Cheddar
Onion
Jambon
Egg

Extra option 2:
cheese
tomatoes
Cheddar
Onion
Jambon
Egg

Extra option 3:
cheese
tomatoes
Cheddar
Onion
Jambon
Egg

Extra option 4:
cheese
tomatoes
Cheddar
Onion
Jambon
Egg

There are a lot of combinations. Only one attributes group comes out throught multi select checkbox
Sorry. I speak english but very bad … :D

 
offline
Publié : 19 Octobre 2009 04:13 PM   [ Ignorer ]   [ # 7 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

Updated module to fix bugs, add full price option and label above checkbox option.

@yungan

Here are the two ways you could use my module:

1. You could add cheese, tomatoes, cheddar, onion, jambon and egg checkboxes and the customer can choose as many or as few as they want. Unfortunately, it does not allow you to limit them to selecting four checkboxes or to force them to choose at least one.

2. As you have written above, you could have four sets of radio buttons with all the possible options. This allows you to force the customer to select exactly four options, but the customer could select the same item more than once.

If you are happy with either of these two options, then my module can do what you want.

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 19 Octobre 2009 04:36 PM   [ Ignorer ]   [ # 8 ]
Senior Member
RankRankRank

Messages :

  • au total : 263
  • 7 derniers jours : 0
Inscrit: 2009-03-31

not working in presta 1.1

 Signature 

CCampea Store- http://www.ccampea.com/lojacc - Store online motos, bikes, helmets

CCampea Twitter- http://twitter.com/ccampealoja

CCampea Facebook - CCampea Facebook - Store Online Motos, Bikes and Accessories

CCampea ThisNext - CCampea This

 
offline
Publié : 19 Octobre 2009 10:35 PM   [ Ignorer ]   [ # 9 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Rocky

I set up 3 checkboxes , the Attribute group name as the label is ok but when added to cart the attribute’s (yes and no) is displayed. I would like the Attribute group name to display instead of the attributes .Did I go about it wrong ?

Images jointes
check example.jpg
 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 20 Octobre 2009 04:48 AM   [ Ignorer ]   [ # 10 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

@wallacept

This module is designed for Prestashop v1.2.4. What’s going wrong in Prestashop v1.1?

@kennyh

Thanks for bringing that bug to my attention. Unfortunately, I don’t think modules have control over that code. You would have to change the code manually.

In classes/Cart.php, change line 270-271 from:

$attributesList .= $row2['public_group_name'].' : '.$row2['attribute_name'].', ';
$attributesListSmall .= $row2['attribute_name'].', ';

to:

if (strpos($row2['public_group_name']'|') !== FALSE)
    
$row2['public_group_name'substr($row2['public_group_name']strpos($row2['public_group_name']'|') + 1);
$attributesList .= $row2['public_group_name'].': '.$row2['attribute_name'].', ';
if (
$row2['attribute_name'!= 'No')
    
$attributesListSmall .= ($row2['attribute_name'== 'Yes' $row2['public_group_name'$row2['attribute_name']) .', ';

I’m not sure whether you made the right choice to use checkboxes. Did you intend to give your customers the option to choose multiple sizes? If you are selling t-shirts, for example, you shouldn’t be able to buy a t-shirt that is both small and medium size. Unless it is your intention to choose multiple sizes, I think you should use radio buttons instead, so the customer can only choose one size.

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 20 Octobre 2009 08:04 AM   [ Ignorer ]   [ # 11 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Rocky

Thank you.. problem is solved with your Cart mod. I have tried the radio buttons and they are great too.The product intended for this checkbox arrangement will be sold in a weight of grams.Its not my idea, but it is a requirement for the user to be able to select one or all attributes.Yes you can force one choice by making one a default attribute.One of beauties of this module I found is the ability for the user to add to the cart quickly many variations of the same product.There isn’t anything or any attempt like this module for PS .Its really helpful.
Ken

Images jointes
Untitled.jpg
 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 20 Octobre 2009 08:20 AM   [ Ignorer ]   [ # 12 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

You’re welcome. I’m happy you’ve found my module useful and are using it in ways I never imagined.

Can you give me a link to your site so I can see how you are using my module?

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
offline
Publié : 20 Octobre 2009 10:23 AM   [ Ignorer ]   [ # 13 ]
Club Member
RankRankRank

Messages :

  • au total : 157
  • 7 derniers jours : 0
Inscrit: 2009-05-19

Rocky

just PM you.
 Signature 

find Crestwhitestrips supreme for sale

 
offline
Publié : 23 Octobre 2009 08:53 PM   [ Ignorer ]   [ # 14 ]
Modérateur
RankRankRankRank

Messages :

  • au total : 906
  • 7 derniers jours : 56
Inscrit: 2008-07-16

Hi Rocky love this module….is there a way for the module to display whether an attribute changes the price of the product. For example a t-shirt size small adds £1 but large adds £2.

Also is it possible to wrap a long column of attributes into 2 columns? I have a feeling it might not be because of the table.

 Signature 

John.

Got a question about Prestashop? Have you looked here?
Please amend your post title to [SOLVED] if your problem has been fixed.
Looking for free modules your for site, try FreePrestashopModules.com
V1.3 Category grid view

 
offline
Publié : 24 Octobre 2009 02:14 AM   [ Ignorer ]   [ # 15 ]
Modérateur
RankRankRankRankRank
Avatar

Messages :

  • au total : 5931
  • 7 derniers jours : 205
Inscrit: 2008-10-16

Hi jhnstcks,

Sorry, but I’m not sure that I understand what you mean. There is already an option to display price differences. Do you mean that you want to display both the full price and price difference at the same time? I’m not sure what you mean by wrapping a long column into two columns. Do you mean wrapping into 2 rows?

 Signature 

Check out Nethercott Constructions for Prestashop modules and programming for hire.  Now on Facebook.

All free and paid software, modules, themes and modifications are subject to the terms and conditions here.

 
 
1 de 12
1
Réponse rapide
Nouveau sujet