Post by favfan » Sat Sep 03, 2011 8:42 am

[removed]
Last edited by favfan on Fri Dec 23, 2011 10:33 am, edited 2 times in total.

Newbie

Posts

Joined
Sat Sep 03, 2011 6:15 am

Post by favfan » Sat Sep 03, 2011 1:44 pm

teratyke wrote:Hi
Here is my attempt at changing the display- there is a bit of extra css in there which isn't used in the default install.
This changes the list to divs and puts in the images.

Probably a much better way of doing this than I have here, but its the best I can manage - improvements welcome!
This is for 1.5.0.5
Thanks
Rob
FYI, this download is the one I'm using now on the site and I don't get the display error from my previous post/screenshot.

Newbie

Posts

Joined
Sat Sep 03, 2011 6:15 am

Post by adamtowers » Mon Sep 05, 2011 12:13 am

Hi,

This .XML works for me to a point, as I can see images for the refined search categories, although I am then unable to view any of my products.. Our site is live, so really keen to get this sorted...

I've been trawling through other posts, and so far have not been able to crack this one..
Any assistance really would be much appreciated!!!

I'm using a clean(ish) 1.5.1.1 version
Vqmod is installed...

Newbie

Posts

Joined
Sat Sep 03, 2011 5:30 am

Post by AliceH » Mon Sep 05, 2011 9:34 am

I must be missing something very obvious but I can't get this to work. I have vqmod installed. then I upload the file and nothing changes. What am I missing, I am not using the default theme but I have tried uploading file as is and editing it replacing default with my theme name. No joy either way, I am running oc 1.5.1.1
Thanks in advance,
Alice.

https://www.embroidery-allsorts.com/


User avatar
Active Member

Posts

Joined
Sun Jan 09, 2011 11:00 am
Location - Australia

Post by Degsey » Mon Sep 05, 2011 12:35 pm

My problem is that I get the images of the subcategories working but I do not get any products in other categories showing.

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by Degsey » Fri Sep 09, 2011 9:03 am

Is there any chance somebody will do a hard code change to the files for this as the VQMod is not working for me.

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by Flap » Fri Sep 09, 2011 4:16 pm

I'm using OC 1.5.1.1 and this mod cause some troubles with product list and footer. So I recoded it. I hope it will help someone.

Code: Select all

<modification>
<id>Display Subcat Images</id>
<version>1.0</version>
<vqmver>1.1.0</vqmver>
<author>Rob Horsfield</author>

<file name="catalog/view/theme/default/template/product/category.tpl">
<operation>
<search position="replace" offset="24"><![CDATA[<h2><?php echo $text_refine; ?></h2>]]></search>
<add><![CDATA[
  <div class="box">
	<div class="box-heading"><?php echo $text_refine; ?></div>
	<div class="box-content">
		<div class="box-product box-subcat">
			<?php foreach ($categories as $category) { ?>
			<div>
				<?php if ($category['thumb']) { ?>
				<div class="image"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a></div>
				<?php } ?>
				<div class="name subcatname"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div>
			</div>
			<?php } ?>
		</div>
	</div>
   </div>
  
]]></add>
</operation>	
</file>



<file name="catalog/controller/product/category.php">
<operation>
<search position="before"><![CDATA[
$this->data['categories'][] = array(
]]></search>
<add><![CDATA[
$image = $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height'));
]]></add>
</operation>	
<operation>
<search position="after"><![CDATA[
'href'  => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url)
]]></search>
<add><![CDATA[
, 'thumb' => $image
]]></add>
</operation>	
</file>
</modification>

Newbie

Posts

Joined
Thu Sep 08, 2011 9:51 pm

Post by Degsey » Sat Sep 10, 2011 3:05 am

I thank for taking the time to reply but the code you just posted is what is available for download previously and still has the same no products showing in categories and footer going full page.

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by Degsey » Sat Sep 10, 2011 6:49 am

Ok finally with some code tweaking I managed to get the file to work for me, it solves the products disappearing and the footer resizing when in sub cats.

This should work on the latest version of 1.5.1.2 and 1.5.1.1

Happy coding!

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by AliceH » Sat Sep 10, 2011 10:25 am

Like I said, I must be missing something obvious and this is what I think it is. I can't seem to find specific instructions on where the file should be uploaded to. ie;does it go in root directory, vqmod directory, or somewhere else? loading in the wrong place would explain why it won't work.
Alice.

https://www.embroidery-allsorts.com/


User avatar
Active Member

Posts

Joined
Sun Jan 09, 2011 11:00 am
Location - Australia

Post by AliceH » Sat Sep 10, 2011 10:37 am

I figured it out. of course it should go in the xml folder, I knew it was something obvious. I also had to edit to my theme. Cool it works. Big thanks to you clever guys who right these things.

https://www.embroidery-allsorts.com/


User avatar
Active Member

Posts

Joined
Sun Jan 09, 2011 11:00 am
Location - Australia

Newbie

Posts

Joined
Sat Sep 10, 2011 11:41 am


Post by okmarket » Sat Sep 10, 2011 11:43 pm

I like your Re: 1.5 Subcategory Images modification, but it's not ok after modificaion. I use v.1.5.1, but not vqmod, so would you like to give me your modification again through email box sales@okmarket.com, thank you.

b.rgds
dAvid

China Wholesaler
http://www.okmarket.com
Image

David Wei


User avatar
New member

Posts

Joined
Sat Jul 09, 2011 11:47 pm
Location - Guangzhou,China

Post by Degsey » Sun Sep 11, 2011 12:13 am

okmarket wrote:I like your Re: 1.5 Subcategory Images modification, but it's not ok after modificaion. I use v.1.5.1, but not vqmod, so would you like to give me your modification again through email box sales@okmarket.com, thank you.

b.rgds
dAvid

David I did not like the VQMod concept at first, but when I finally installed it with the VQMod Manager module I realized how much easier it is to change the function of the website without the hard code changes and now look forward to all my future upgrades being through VQMod.

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by keether » Sun Sep 11, 2011 2:37 am

Ok, I installed vqmod then I uploaded "subcat_images2.xml" (link above) to: mycart/vqmod/xml

Is there anything else to do because it does not work for me with version 1.5.1.2

Any help please , I have spent hours trying to get sub images to show

New member

Posts

Joined
Sat Sep 18, 2010 9:13 am

Post by Degsey » Sun Sep 11, 2011 6:05 am

Firstly install VQMod Manager if you have not already and make sure that it says that the mod is installed and there are no error messages.

Also if you are not using the default template you have to alter the code in the xml file to show the new template name, I suspect that is what is happening to a lot of people, here is the line to alter.

Code: Select all

<file name="catalog/view/theme/default/template/product/category.tpl">
to


<file name="catalog/view/theme/yourtemplatename/template/product/category.tpl">

Live Long and Prosper!

Degsey :-]

Visit us at :

http://www.Supreme-Ink.com


User avatar
New member

Posts

Joined
Sun Jun 12, 2011 2:29 am
Location - North Carolina

Post by keether » Sun Sep 11, 2011 6:42 am

Thx I will try it

New member

Posts

Joined
Sat Sep 18, 2010 9:13 am

Post by desymc » Sun Sep 11, 2011 8:20 am

I've also spent hours today trying to sort the same problem with version 1.5.1.2 and tried all of the above and still no images. Any other ideas please??

Newbie

Posts

Joined
Mon Jun 21, 2010 1:28 am

Post by okmarket » Sun Sep 11, 2011 10:08 am

Hi Degsey,

I am sorry, I am not familiar with vqmod, so would you like to pls give me modification instruction by opencart 1.5.1? thank you again.

China Wholesaler
http://www.okmarket.com
Image

David Wei


User avatar
New member

Posts

Joined
Sat Jul 09, 2011 11:47 pm
Location - Guangzhou,China

Post by AliceH » Sun Sep 11, 2011 10:19 am

okmarket, I think you should download and intall vqmod, you will save yourself an awful lot of time.
I really struggled with this so here is the step by step for anyone who is having problems
download and install vqmod. for the correct version of opencart read the instructions you will need to make sure the vqmod and vqmod cache files are writable then navigate to the link in the instructions to to install. easy peasy takes a few minutes.
Now take degsey's mod and open it in which editor you use, I like notepad++ now change the part that has the default template in the link to the name of your template.
so for mine I did this

Code: Select all

<file name="catalog/view/theme/kinder15/product/category.tpl">
now upload this to the xml folder in vqmod.
That is it, it is very easy and quick once you figure it out.

https://www.embroidery-allsorts.com/


User avatar
Active Member

Posts

Joined
Sun Jan 09, 2011 11:00 am
Location - Australia
Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 76 guests