Jump to content

Product available with different options


Littlepants

Recommended Posts

On some items on my categories pages (Front Office) it shows text sayng "Product available with different options" Other items which also have different options don't show this text. Also some items say (In stock) and the odd one doesn'yt say anythng. I'm blowed if I can find out how to change these texts. Can anyone help please? I'm sure it's something really simple - I just cant see it - maybe its word blindness!

 

Link to comment
Share on other sites

It means that the default option is not available. 

 

With products with combinations you can have a buy button on your category page. In that case your will not have the opportunity to select attributes and always get the default combination. If that is not available you get this message.

Link to comment
Share on other sites

The "Product available with different options" is displayed when the default combination is out of stock, but other combinations are in stock. It signals to the customer that even though the "Add to cart" button is disabled, they can still click on the product and select another combination to add the product to their cart.

 

You can change the text by going to the Localization > Translations tab, selecting "Front Office translations", your theme and "English (English)" and then clicking the "Modify" button. Scroll down to the "product-list" section and then click the header to reveal the translations. You can then change the translation for "Product available with different options" and then click the "Save" button.

Link to comment
Share on other sites

  • 3 years later...
  • 8 months later...

I'm right now developing a module that can indicate or disable (but still display) attributes without stocks. There is also the option to display price impacts. Please send me a private message if you want to beta test it.

Link to comment
Share on other sites

  • 2 weeks later...
On 11/16/2020 at 6:15 AM, Guest said:

Take a look at the module codes and you will find that it is not that simple.
If you want to make changes to the Prestashop files, you will need to edit the Product.php and ProductControllerCore.php files
I do not recommend !!!
What's wrong with using a module that does what you need?

Thant's what I've done and that's why I finally decided to use a module. Nothing wrong with using a module I'm just a student who likes to learn how to do thinks. I will search in the direction you pointed me in a local version, thank you very much. 

Link to comment
Share on other sites

  • 2 weeks later...

 

On 11/30/2020 at 6:12 AM, Guest said:

If you program a mini module, just use the actionProductUpdate hook.
In this hook, you can only find out from the ps_product table and the cache_default_attribute column and the ps_stock_available table if the quantity is 0 or less.
If it is less, you change the cache_default_attribute.
For example, you can find out by SQL querying the ps_stock_available table.

 

Thank you for this clarification and for your help. Effectively, I was thinking of using an SQL query to retrieve the stock of the default combination. However, I didn't know which tables to look for or which hook to use so thank you again for these details. 

Link to comment
Share on other sites

  • 1 year later...

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