• 1.7
  • 8.0
Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
search

Do you need to enter extra availability for each product and don't want to enter it manually? The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...
  • Do you need to enter extra availability for each product and don't want to enter it manually?
The module allows you to prese...

Custom product availability texts

Kč350

Do you need to enter extra availability for each product and don't want to enter it manually?

The module allows you to preset your own accessibility texts, color them and hang them on hooks.

And that's not all.

Module version: 1.1.0
Prestashop verze: 1.7.0.0 > 8.1.4
Translate: CS, EN, SK
Date add: 08/04/2023
Date update: 05/12/2024
* E-mail support + free updates are offered for the module
* If you want to get the module express, I will send the module to you immediately against payment confirmation
* Individual modification of the module is possible after agreement
* One license of the module is valid for 1 e-shop (1 domain)
* Number in cart = number of domains
Contact us for more information
How to pay and download the module?
Licence conditions

Do you need to enter extra availability for each product and don't want to enter it manually?

ATTENTION: the module does not automatically change the availability text according to the quantity in stock!!!

The module allows you to preset your own accessibility texts, color them and hang them on hooks.

And that's not all.

You can also disable ordering when selecting the availability status, enter the number of days when the product will be delivered and use the delivery time in the comparator files.

In the administration of the product detail, you will see a block under the description in which you will have a selection of predefined availabilities available.

If you disable the ordering option in the custom availability settings, the "Add to cart" button will be disabled.

In the module settings, there are also examples for programmers on how to get the necessary data from the module and use it, for example, in another module.

1* To use the availability text anywhere on the product, you can use a hook in the TPL template:
{hook h="displayProductAvailability" idProduct=$product.id}

2* For programmers:

a) the change of product availability is made in the table: ps_product and the availability id is entered in the availability column

b) the number of days is entered in the table: ps_ps8mod_dostupnost and the numerical value in the column dostupnost_pocet

c) example of how to check availability:

$getValues = Db::getInstance()->getRow(' SELECT a.dostupnost_pocet as count_day, a.barva as text_color, a.povoleno_objednat as allowed_to_order, b.dostupnost as available_text

FROM '._DB_PREFIX_.'ps8mod_dostupnost a

LEFT JOIN '._DB_PREFIX_.'ps8mod_dostupnost_lang b ON (a.id = b.id_dostupnost)

LEFT JOIN '._DB_PREFIX_.'product c ON (a.id = c.dostupnost)

WHERE b.id_lang = '.$this->context->language->id.' AND c.id_product = '.$product->id);


result:
$getValues['count_day']
$getValues['text_color']
$getValues['allowed_to_order']
$getValues['available_text']

d) example of how to write availability for a product:
Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'product SET dostupnost = 1 WHERE id_product = '.$product->id);

ps8mod_dostupnost