Jump to content

[fixed] Problem with the Product Attributes drop-down menu


Recommended Posts

i am using prestashop 1.7.4.2 classic theme and i am having issues with the product attributes selection.
 

When I'm creating a product with different combinations (different attributes with drop-down menu), then I can't choose these combinations on the front office webpage. I choose a combination of the product, the shop shows me some seconds selected product and after that it updates the product to the default combination.

i have already searched the forum for solutions and tried all of these without success:
1. changing attribute separator to comma and back to dash
2. changing the URL rewrite
3. altering the ProductController file
4. tried generating all attributes at once and doing them one at a time
5. turning off friendly URLS
6. i am not using cross selling

here is a link to my product page with the problem. 
https://store.greenthumbsgalore.com/all-plants/brugmansia-painted-lady#/7-plant_format-cutting/15-quantity-1_cutting

i also attached a screenshot from the backoffice view.

can anyone help please?

 

Capture.JPG

Link to comment
Share on other sites

OMG!!
I fixed this myself.

two things required:
1. removed ean13 from the route to products

2. edited line 952 in "controllers/front/ProductController.php" and added the "," after groups line 955 and "true" on line 956

it looks like this now:

            if (!empty($groups)) {
                $requestedIdProductAttribute = (int) Product::getIdProductAttributesByIdAttributes(
                    $this->product->id,
                    $groups,
                    true
                );
            }
        }


then clear cache in advanced  parameter >> performance.

Edited by southrnbelle
added 'clear cache' (see edit history)
Link to comment
Share on other sites

  • southrnbelle changed the title to [fixed] Problem with the Product Attributes drop-down menu

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...