Photo output product in the history of the buyer opencart
Web Studio - site development of any direction. | web-ukraine.com
πŸ’Ό Creation of modern websites of any complexity. | πŸ‘Œ WEB-UKRAINE.COM

Photo output product in the history of the buyer opencart

5/54 ratings

And so today, the next client took me to do the possibility of withdrawal of goods pictures in the history of the customer orders, after all registered customers can log in to the office and see all your orders together with photos as the goods themselves, and of itself as it can be done, I shall paint in detail here.
The changes will make in the next four files as follows:

Well start ...
1. Open File /catalog/controller/account/order.php
Find the line:

And add the code between them:

Next, find the code below:

And add to it:

There you find the code below:

and thereafter adding:

2. Open File /catalog/model/account/order.php
In it we find the line:

And replace it with:

3. Open File /catalog/view/theme/your theme/stylesheet/stylesheet.css
And after the code (PS: in your topic can be a little different):

add a couple of lines of styles:

4. Open File /catalog/view/theme/your theme/template/account/order_info.tpl
Find the following code:

And replace it with:

There about after the code:

We find:

And replace it with the following code:

Now that your users have the opportunity to watch their order history, along with photos of the ordered goods.

Ps: If you want to see the smaller size of the images and not those that you suggested above can be used instead of the code config_image_category_width the following code config_image_additional_width

You may also like

No Comment

You can post first response comment.

Leave a Reply

Π’ΠΈΠ±Π΅Ρ€Ρ–Ρ‚ΡŒ спосіб спілкування
Звязатися Π· Π½Π°ΠΌΠΈ!
Ми Π³ΠΎΡ‚ΠΎΠ²Ρ– Π΄ΠΎ Π΄Ρ–Π°Π»ΠΎΠ³Ρƒ.