How to overwrite output of EShop views!

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 years 8 months ago #43361 by Giang Dinh Truong
How to overwrite output of EShop views! was created by Giang Dinh Truong
Dear all,
EShop is a standard Joomla MVC extension so it works based on standard Joomla rules. Joomla allows you to overwrite output of any components and modules from the template (Checkout more about this here: docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core ) so EShop also allows you to do that.

Example: To overwrite output of product details page, you need to copy file: components/com_eshop/themes/default/views/product/default.php to folder templates/your_template/html/com_eshop/product/default.php and modify this file from the template.

Once the file is putted in the template folder, it will be used instead of the file in the EShop component. So in the future, if you update EShop, the your works will be not lost.

Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #45619 by paula
Replied by paula on topic How to overwrite output of EShop views!
Hi I'm about to change the look of my featured products in home page I have to modify the core file of the eshop featured products where can I do this? Thank you

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 years 6 months ago #45620 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic How to overwrite output of EShop views!
Hello Paula,
I am not sure if feature products on your home is front-page view from the EShop component or from products module?
Please let me know.
Sincerely, Giang
The following user(s) said Thank You: paula

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #45621 by paula
Replied by paula on topic How to overwrite output of EShop views!
It is from products module

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 years 6 months ago #45622 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic How to overwrite output of EShop views!
OK then let's overwrite modules\mod_eshop_product\tmpl\default.php file.
Hope that this will help.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #45623 by paula
Replied by paula on topic How to overwrite output of EShop views!
OK thank you!!! Will work on it.

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 years 6 months ago #45624 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic How to overwrite output of EShop views!
OK no problem!
Don't hesitate to let me know if you need any more helps.
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #45625 by paula
Replied by paula on topic How to overwrite output of EShop views!
This is confusing sorry but i also have to locate where does the file/controller which sets a product featured..thanks for the big help

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
10 years 6 months ago #45626 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic How to overwrite output of EShop views!
Hi again Paula,
In the configuration of module, you have option to choose products type to show. Let's choose Featured, then your module will be featured products. Does not make sense?
Sincerely, Giang

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #45627 by paula
Replied by paula on topic How to overwrite output of EShop views!
I finally found my solution thanks!!! If product featured sets to 1 <display css> Thank you for your earnest reply!!!

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong