It should reflect the results but nothing changes
I have cleared the cache in browser, administrative, the cache folder but nothing I also used this way in clearing cache cc=&ctpl=
Okay, done that the override file started to make changes (Iâm using localhost to test my code) but then suddenly stopped reflecting then I went to my development site anything I type in my override file it reflects, so what is wrong with my localhost??
Another thing I wanted to check my version of the Smarty template so I wrote this code
{if $smarty.version >= '3.0.0'}
<p>Smarty version 3 or higher is being used.</p>
{else}
<p>Smarty version 2 or lower is being used.</p>
{/if}
It uses version 3, plus I have this code to remove the print invoice
But it says without modifier is unknown even though the Smarty template starting from version 3 does support without modifier, what do I have to do to solve this challenge and prevent this from happening?
Maybe it isnât available standard in cs-cart, you can check, goto âapp/lib/vendor/smarty/smarty/libs/plugins/modifier.without.phpâ. If missing, you can obtain it from the official Smarty repository or another compatible CS-Cart installation.
If still not work, it is not advisable but you could modify CS-Cart core files:
a. Locate the file âapp/Tygh/SmartyEngine/Core.phpâ in your CS-Cart installation.
b. Open the file and search for the following line:
@CS-Cart_team I was wondering why not create a setting in cs cart so show hide that link.
It would be useful also to hide packing slip as I dont use that feature.
It is more elegant to have options like I mentioned and teh platform will be more stable consistent without changes in code in multiple places and when you upgrade don t need to worry that you have changes everywhere. Letâs improve cs cart and improve experience of us customer of our clients also
Thank you for the offer, @gurdji but Iâm afraid that adding separate settings for each existing corner of CS-Cart contradicts the idea of our product âLaunch Fastâ, as it will increase the difficulty of the product for new customers. So Iâm afraid such changes wonât be made in the near future.
As for the changes, most of them can be achieved with using hooks, so there is nothing to worry about during the upgrade. If there are not enough hooks to achieve a specific result you want, please let me know, I will check if there really is no way and notify the developers to create a new hook for that case.
@Aya in order to hide the Print invoice menu item, you can create the following override (Iâll be using the My changes add-on for this example: design/backend/templates/addons/my_changes/hooks/orders/details_tools.override.tpl with the following content:
The code was taken from the design/backend/templates/views/orders/details.tpl template, where I simply removed everything that corresponded to the invoice.
Thank you for your feedback!
I see things in a different way. Launch product âLaunch Fastâ means also setting by default so diplay as it is now in cs cart and the ones who need to hide some links to use the setting to hide them
Can you explain why you took from details.tpl? because arenât we supposed to override the details_tools.post.tpl because it is responsible for displaying the tools section?
Also, I have this code that responsible for displaying print invoice in the details.tpl, the one you provided I donât have
Syntax error in template âtygh:/home/riwayaco/public_html/development/design/themes/responsive/templates/addons/my_changes/overrides/addons/pdf_documents/hooks/orders/details_tools.post.tplâ on line 7 â{btn type=âlistâ text=__(âprint_packing_slipâ) href=âorders.print_packing_slip?order_id=$order_info.order_idâ class=âcm-new-windowâ}â unknown tag âbtnâ
Also when I add this code it takes so much time in reloading to view the changes on this page, why??
I have cleared all caching and everything called cache.