- Posts: 3
- Thank you received: 0
Hikashop without JavaScript?
15 years 1 month ago #23748
by fuzzr
Hikashop without JavaScript? was created by fuzzr
Hi2All!
Is it possible to run Hikashop with JavaScript disabled?
Sorry if I missed something, but I didn't find anything about that topic.
Thanx in Advance,
fuzzr
Is it possible to run Hikashop with JavaScript disabled?
Sorry if I missed something, but I didn't find anything about that topic.
Thanx in Advance,
fuzzr
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23755
by nicolas
Replied by nicolas on topic Re: Hikashop without JavaScript?
Hi,
Most of the front end of HikaShop can be used without javascript. People should be able to place orders. However, some functionalities might not be working properly, like the edition of addresses.
Most of the front end of HikaShop can be used without javascript. People should be able to place orders. However, some functionalities might not be working properly, like the edition of addresses.
Please Log in or Create an account to join the conversation.
15 years 1 month ago - 15 years 1 month ago #23763
by fuzzr
Replied by fuzzr on topic Re: Hikashop without JavaScript?
Hi Nicolas!
Thank you for your quick response!
In www.website.com\components\com_hikashop\views\product\tmpl\show.php around line 133 there is this:
And the function hikashopModifyQuantity is rendered into the page.
So I have no clue how to replace the JavaScript with an php-statement to add something to the cart, is there a switch to disable or change this? (sorry I'm quite new to hikashop).
Thanx you & best regards,
fuzzr
Thank you for your quick response!
In www.website.com\components\com_hikashop\views\product\tmpl\show.php around line 133 there is this:
Code:
<span id="hikashop_product_quantity_main" class="hikashop_product_quantity_main">< ? p h p
$this->row =& $this->element;
$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1'.$form.'); } else { return false; }';
$this->setLayout('quantity');
echo $this->loadTemplate();
? >
</span>
And the function hikashopModifyQuantity is rendered into the page.
So I have no clue how to replace the JavaScript with an php-statement to add something to the cart, is there a switch to disable or change this? (sorry I'm quite new to hikashop).
Thanx you & best regards,
fuzzr
Last edit: 15 years 1 month ago by fuzzr. Reason: php code not displayed
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23764
by nicolas
Replied by nicolas on topic Re: Hikashop without JavaScript?
Hi,
The add to cart already works without javascript. You can try yourself on our demo website with the javascript turned off. There is no code to change.
The add to cart already works without javascript. You can try yourself on our demo website with the javascript turned off. There is no code to change.
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23770
by fuzzr
Replied by fuzzr on topic Re: Hikashop without JavaScript?
Hi Nicolas!
Haha, that was the right hint, thank you!
In my shop->configuration-> view I had chosen as button-style: 'css' and that generates a JavaScript only button (it seems to be - www.website.com\administrator\components\com_hikashop\helpers\cart.php - line 38...)
Now I switched button-style to normal and it works without JavaScript.
Thanx you for your quick help & best regards,
fuzzr
Haha, that was the right hint, thank you!
In my shop->configuration-> view I had chosen as button-style: 'css' and that generates a JavaScript only button (it seems to be - www.website.com\administrator\components\com_hikashop\helpers\cart.php - line 38...)
Now I switched button-style to normal and it works without JavaScript.
Thanx you for your quick help & best regards,
fuzzr
Please Log in or Create an account to join the conversation.
15 years 1 month ago #23772
by nicolas
Replied by nicolas on topic Re: Hikashop without JavaScript?
Hi,
Indeed. The CSS styled buttons need javascript to be turned on so you need to use normal buttons if you want them to be working while javascript is disabled.
Indeed. The CSS styled buttons need javascript to be turned on so you need to use normal buttons if you want them to be working while javascript is disabled.
Please Log in or Create an account to join the conversation.
Time to create page: 0.191 seconds