Miércoles, 30 Julio 2014 01:01
beggarly

virtuemart products

Report Xmap bugs on this forum.

virtuemart products

Postby coppo82 » Tue Sep 18, 2012 2:15 pm

hi all , i have installed xmap 2.2.1 with virtuemart plug in , i publish the plugin and set ALWAYS for the products .

i create an hide menù where i display all category list

now my problem is that xmap create a sitemap just with 258 products , in my website i have over 1000 poroducts.

can someone explain me kindly why xmap generate a sitemap with only 258 products ???

i already try to reinstall but i still have the same problem.

thanks.
coppo82
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Tue Sep 18, 2012 2:12 pm

Re: virtuemart products

Postby adnank » Wed Sep 19, 2012 1:55 pm

Same problem here - I have over 5000 products and only 1180 is listed in XML sitemap
adnank
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Sun Apr 15, 2012 10:06 pm

Re: virtuemart products

Postby guilleva » Tue Sep 25, 2012 4:18 am

Hi, thanks for posting this issue, please try the attached version for the plugin, this should fix that issue:

Just install it as any other Joomla's extension
Attachments
xmap_com_virtuemar-2.0.1.zip
(6.7 KiB) Downloaded 398 times
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: virtuemart products

Postby AngelinStoev » Wed Sep 26, 2012 8:09 am

Hi, I have the same problem - my xmap create a sitemap just with 192 products, in my website i have over 470 poroducts.

guilleva: install this Joomla's extension but nothing has changed. Any other idea from what could it be?
AngelinStoev
Fresh Boarder
Fresh Boarder
 
Posts: 3
Joined: Wed Sep 26, 2012 8:03 am

Re: virtuemart products

Postby Greg » Sun Oct 21, 2012 11:07 am

Hi Guilleva and hi all

(long time since last post ^^)

Ok, just got the same issue with the 2.3.0 of xmap and the 2.2.1 xmap plugin for virtuemart.
60 products in my shop, but only the half on the sitemap.

What I can say is that apparently the sitemap retrieve only 10 products by parent category...if it can help to solve the clue.
Last edited by Greg on Sun Oct 21, 2012 5:26 pm, edited 1 time in total.
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: virtuemart products

Postby Greg » Sun Oct 21, 2012 1:41 pm

Ok, found the problem.

This issue is due to the number of "products per page" in the vm configuration, once I change this to 70, all my 60 products were inserted correctly in the xml sitemap.

I will try to provide a fix asap, and commit it on the master branch too.
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: virtuemart products

Postby Greg » Sun Oct 21, 2012 2:32 pm

ok fixed for me.

File : plugins/xmap/com_virtuemart/com_virtuemart.php
at line 184 add
Code: Select all
        $app->setUserState('com_virtuemart.xmlc0.limit',9000);


And so both html and xml sitemap have all the products in (at least 9000, just change this number to fit your needs)

Pull request done on the master branch.
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: virtuemart products

Postby guilleva » Mon Oct 22, 2012 3:08 pm

Hi, Greg!!

Thanks for sharing the fix. I have merged into master!

Regards,

Guillermo
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: virtuemart products

Postby ev3ry » Mon Oct 22, 2012 8:15 pm

Hi, guys! Had the same problem. Unfortunately, fix provided by Greg didn't help.

After some researches created own solution:
In file plugins/xmap/com_virtuemart/com_virtuemart.php
between 135 and 136 lines I have inserted this code:
self::$productModel->_noLimit = true;

that line disables the limitation for Virtuemart when it is searching products for the category.

thought it might be helpful to others.
ev3ry
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Oct 22, 2012 8:09 pm

Re: virtuemart products

Postby Greg » Tue Oct 23, 2012 5:33 pm

Hi,

Did you say that without your fix the issue remain both for html and xml sitemap ? Because it's weird that it can't work for you too.

Also, $productModel->_noLimit could be "dangerous" for shop with huge number of products.
And as I see it in the code, $productModel->_noLimit is conditional to the "Show manufacturers" option in the VM config, so if I uncheck it in the VM config, your fix would have no effect.

Anyone else could give some test results about both fix plz ?

thanks
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Next

Return to Bugs



Who is online

Users browsing this forum: No registered users and 3 guests

cron