-
Posts
620 -
Joined
-
Last visited
-
Days Won
27
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by yaniv14
-
@jollyfrog I prefer not to be involved in a decision about the approved theme design. and leave the decision to the members of the community and you.
-
I will do it
-
@jollyfrog can you provide a finish design (accepted by community members) that covers most important pages: home, category, product, checkout, cart?
-
@led24ee It is necessary because you might get a javascript error. document.querySelector('.unit-price').innerHTML -> "innerHTML" is a property of an object, and if the object does not exists then the property cannot be called.
-
@led24ee in case you don't have this in every product page you should protect the code a bit. you should wrap it inside a condition. like: window.addEventListener('DOMContentLoaded', (event) => { if (document.querySelector('.unit-price')) { .... rest of code ... } });
-
@led24ee My mistake... yes you are right, you only need to pick a new selector.
-
@led24ee look at the updated post
-
if you only need it in product page, so you can try adding this code to the bottom of "themes/niara/js/product.js" window.addEventListener('DOMContentLoaded', (event) => { const lang = document.documentElement.getAttribute('lang'); if (lang === 'en-us') { document.querySelector('.unit-price').innerHTML = document.querySelector('.unit-price').innerHTML.replace('per meeter', 'for meter'); } else if (lang === 'tk') { document.querySelector('.unit-price').innerHTML = document.querySelector('.unit-price').innerHTML.replace('per meeter', 'for meter in tk'); } });
-
what is your shop url?
-
This tutorial from 2017 most likely will work for you. But its not a recommended way of doing it, because it requires modifying core files. I suggest (until proper fix will be implanted in core) doing some hack with javascript.
-
you or your server provider should increase php memory_limit to 128mb or 256mb. from 32mb you have now
-
If its a different module then start a new topic and give more details, and we will try to help.
-
check your rewrites, if you use nginx make sure you cover all folders rewrites. if using other web server just regenerate htaccess.
-
<table> should be replaced by any table you wish to modify. e.g. "ps_cart" to change on database run: ALTER DATABASE <db name> CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; when <db name> is you db name
-
https://www.google.com/recaptcha/admin/create
-
Order confirmation page - Add order price + Order ID
yaniv14 replied to Minik's question in Technical help
Order confirmation page contains various JS variables. 'bought_products' => $varProducts, 'total_products_tax_incl' => $order->total_products_wt, 'total_products_tax_excl' => $order->total_products, 'total_shipping_tax_incl' => $order->total_shipping_tax_incl, 'total_shipping_tax_excl' => $order->total_shipping_tax_excl, 'total_discounts_tax_incl' => $order->total_discounts_tax_incl, 'total_discounts_tax_excl' => $order->total_discounts_tax_excl, 'total_paid_tax_incl' => $order->total_paid_tax_incl, 'total_paid_tax_excl' => $order->total_paid_tax_excl, 'id_customer' => $this->context->customer->id, if you need order id as JS variable you will have to override orderconfirmation controller and add it your self. btw: order id is available in order confirmation template as smarty var -
Good luck to you. You will need it
-
Try to compare your classes folder to the one in the repository: https://github.com/thirtybees/thirtybees/tree/main/classes look for Pack.php file existence
-
If its only for your information than you can create sql query in Advanced parameters -> SQL Manager. select customer_email, id_product, id_product_attribute from tb_mailalert_customer_oos and you just view it on the admin page. it will show you: Email address, Product ID and Product attribute ID. p.s. in case you have other db prefix (like "ps") then you should use "ps_mailalert_customer_oos"
-
Its possible but you will have to code it your self. mailalerts module keeps records of customer/email address who are waiting for products to be back in stock... inside mailalert_customer_oos table. you can create yourself a small module with some hook that matches product page (displayLeftColumnProduct,displayRightColumnProduct,actionProductOutOfStock,displayProductButtons), or some new custom hook (and edit product.tpl file). OR you can override front/ProductController and add extra context (and edit product.tpl file). you can use getCustomers() function inside module class to fetch all emails awaits notification regarding certain product.
-
Custom change in theme/../views/css not working for beesblog
yaniv14 replied to Dolfijn's question in Theme help
You can find the relevant code that deals with loading css/js under classes/controller/FrontController.php addMedia() -
Custom change in theme/../views/css not working for beesblog
yaniv14 replied to Dolfijn's question in Theme help
It should go under "your-theme/css/modules/beesblog" -
Yes, you can try to use the rewrite_module or you can ask your server provider to do it for you. basically you need the images rewrites. location ~* \.(eot|gif|ico|jpg|jpeg|otf|pdf|png|svg|swf|ttf|woff|webp)$ { rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2$3.jpg break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ /img/c/$1$2.jpg break; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$1$2$3.webp break; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$1$2$3$4.webp break; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$1$2$3$4$5.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.webp break; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.webp break; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.webp$ /img/c/$1$2$3.webp break; rewrite ^/c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.webp$ /img/c/$1$2.webp break; allow all; try_files $uri $uri/ /index.php?$args; }
-
Regenerate htaccess wont help when using nginx web server. You will need to include all rewrites rules inside your nginx server block.
-
sudo chown -R $USER:www-data /var/www/masterplay.cz/eshop/ sudo find /var/www/masterplay.cz/eshop/ -type d -exec chmod 775 {} \; sudo find /var/www/masterplay.cz/eshop/ -type f -exec chmod 664 {} \;