Post by madhubanilokkala » Fri Mar 04, 2016 1:12 am

Hi There,
My Opencart 2.1.0.1 with default theme having a issue in Related Products.
by default it shows 3 products In Related Products (wherever space are available for 4 products) but the 4th products display in next line. i want to it (Related Products) display 4 Products on one line in category view?
Please see a snapshot below.
Thanks,

Attachments

snap_shot.jpg

snap shot - snap_shot.jpg (58.94 KiB) Viewed 792 times



Posts

Joined
Sat Dec 26, 2015 2:07 pm

Post by ocart777 » Fri Mar 04, 2016 1:50 am

in your catalog/view/theme/default/template/product/product.tpl
search for

Code: Select all

col-lg-3 col-md-3 col-sm-6 col-xs-12
replace with

Code: Select all

col-xs-6 col-sm-3
Clipboard01.jpg

Clipboard01.jpg (102.22 KiB) Viewed 768 times

more info about Bootstrap CSS can be found at http://getbootstrap.com/css/#grid-responsive-resets
Last edited by ocart777 on Fri Mar 04, 2016 11:12 am, edited 1 time in total.

You can't control the weather, but you can change your mood.
You can't modify the visage, but you can show your smile.
You can't command someone else, but you can hold yourself.
You can't forecast tomorrow, but you can using today.
You can't obtain thanks, but you can exert yourself in everything.


OCEXTENSION.COM - YOUR PROFESSIONAL OPENCART EXTENSION STORE


User avatar
Active Member

Posts

Joined
Mon Jun 10, 2013 4:57 pm
Location - Malaysia

Post by IP_CAM » Fri Mar 04, 2016 7:31 am

much better than before, but still far from good, Number 1 Related is always separated.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by madhubanilokkala » Mon Mar 07, 2016 1:57 pm

Many thanks for your quick reply Mr. ocart777
Opencart 2.1.0.1, Default Theme
Whatever you told above doing everything asper you said but still i didn't get any changes. It still show when i click any product from home page and where the product details below Related Products nothing changes.

i got an error after saving file see snapshot or below
Notice: Undefined index: priority in /home/mydomain/public_html/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 192Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/admin/index.php:84) in /home/mydomain/public_html/system/library/response.php on line 12

see attachment below

Please help me out

Attachments

screenshot3.jpg

Nothing will be changed after replace the code - screenshot3.jpg (72.98 KiB) Viewed 746 times

screenshot2.jpg

error msg - screenshot2.jpg (53.47 KiB) Viewed 746 times

screenshot1.jpg

Where code will be changed - screenshot1.jpg (41.86 KiB) Viewed 746 times



Posts

Joined
Sat Dec 26, 2015 2:07 pm

Post by ocart777 » Mon Mar 07, 2016 2:34 pm

Hi, the provided CSS code changed has nothing to do with the admin side. please try click the refresh modification button from Admin->Extensions->Modifications

You can't control the weather, but you can change your mood.
You can't modify the visage, but you can show your smile.
You can't command someone else, but you can hold yourself.
You can't forecast tomorrow, but you can using today.
You can't obtain thanks, but you can exert yourself in everything.


OCEXTENSION.COM - YOUR PROFESSIONAL OPENCART EXTENSION STORE


User avatar
Active Member

Posts

Joined
Mon Jun 10, 2013 4:57 pm
Location - Malaysia

Post by madhubanilokkala » Mon Mar 07, 2016 5:23 pm

Great Mr. ocart777

Many many thanks

Its work.


Posts

Joined
Sat Dec 26, 2015 2:07 pm
Who is online

Users browsing this forum: No registered users and 40 guests