Quantcast
 Redmystic Forum :: RedMystic Product Database
Welcome Guest   [Register]  [Login]
 Subject :Price issue.. 30-05-2011 20:20:11 
manuxx
Geek Fledgling
Joined: 23-05-2011 07:23:42
Posts: 3
Location

Hello

 

First of all thanks for this great component

I'm having issues displaying the correct price. My website had a hack done to show prices + shipping cost directly. This hack uses de weight field of the product to multiply some shipping quantities and obtain the total price...

 

resuming... both the price on redmystic and google merchant center are shown incorrectly.

 

This is the problem on a real example:

http://www.comenaranjas.com/naranjas/naranjas-para-zumo-15-kgs TOTAL 23€

http://www.redmystic.com/component/redmysticserver/?view=search&search=site%3Ahttp://www.comenaranjas.com/ TOTAL 12.69

 

Same on google merchant center...

 

Can I manually enter the price?? Editing the file or somehow... we have 12 products so I won't mind doing that..

Can I use the same hack that shows the price correctly on the website for the feed file? what file controls how the price for the feed is obtained?

 

 Does wrong price have a negative impact or can google penalise me for that?

 

I guess the correct solution would be to obtain the price in the same way as on my website... if not if i could manually edit it the feed but then updates will keep ruining the price

 

Thanks

 

 

IP Logged
Last Edited On: 30-05-2011 20:54:00 By manuxx for the Reason
 Subject :Re:Price issue.. 31-05-2011 09:19:18 
Garry
Mega-Geek
Joined: 15-02-2009 10:43:06
Posts: 1,070
Location: North Carolina, United States
 

Hi,

I think the two most viable options for you are

1. I don't fully understand how you calculate price but take a look at the shipping options within the virtuemart section of the redmystic configuration. You can configure it to talk to virtuemart to aquire shipping prices. Because the way virtuemart implements the shipping modules it tends to be very slow but if you have only a few product it might work. So you'd be interested in the "fixed" shipping option.

2. Modify the redmystic source code to match the pricing logic you have. Obviously the big downside is upgrading.

 

 

Cheers,

Garry

IP Logged
 Subject :Re:Price issue.. 31-05-2011 10:43:14 
manuxx
Geek Fledgling
Joined: 23-05-2011 07:23:42
Posts: 3
Location

Hello, thanks for reply.

The hack was done by a developer and seems to be this one components/com_virtuemart/themes/mytemplate/templates/common/price.tpl.php:

if( !empty( $price_info["product_price_id"] )) { ?>
    
                     require_once(CLASSPATH.'ps_checkout.php');
            $ship_price = $base_price + ps_checkout::get_ship_rate_by_product($product_id);
            echo $CURRENCY_DISPLAY->getFullValue($ship_price)
        ?>
        getFullValue($base_price) ?>
        
    

}
echo $price_table;
?>

 

Is probably just changing the line in your source code indicating the correct price on my code but my kwoledge is limited

 

Can you point me the file to modify for the source code? cause I couldn't find it.

One last question, can't I just edit the prods.xml file generated by your component and edit the lines for prices there and upload it to google merchant center? Thanks

IP Logged
Last Edited On: 31-05-2011 10:50:08 By manuxx for the Reason
 Subject :Re:Price issue.. 31-05-2011 12:27:25 
Garry
Mega-Geek
Joined: 15-02-2009 10:43:06
Posts: 1,070
Location: North Carolina, United States
 

Hi,

Sorry but I don't make personalized mods unless they benefit everyone. Yours is very specific.

 

I'd only recommend modifying the actual product feed file if you only have a few products. In this case you'd want to turn the module off to stop automated product feeds from being created. It'll over write the prices.

 

Cheers,

Garry

 

 

IP Logged
 Subject :Re:Price issue.. 31-05-2011 15:12:34 
manuxx
Geek Fledgling
Joined: 23-05-2011 07:23:42
Posts: 3
Location

Well, I was just asking for a bit of help... you could have just pointed me at least what file to modify as I was willing to use your component.

If I use this hack is cause my price has to be shown with shipping cost included + tax... not cause I like it but I need it..

Just as a matter of interest to you price display is one of the biggest issues in virtuemart and this same hack has done for many other users having the same problem.

OFC I didn't expect you to modify this for me for free just help me a bit to send the feed to google merchant center at least... or indicate me what line to change which you obviously know better than me.

don't even have clear If I can modify the feed xml file as you did not answer yes...

Thanks anyway

IP Logged
 Subject :Re:Price issue.. 01-06-2011 00:53:02 
Garry
Mega-Geek
Joined: 15-02-2009 10:43:06
Posts: 1,070
Location: North Carolina, United States
 

my apologies. I wrote it in haste and could of done a better job of explaining.

 

Yes you can modify the feed file itself but you'll be stuck making changes to it each time something changes in your products. Google also expires your products after 30 days so you'll have to reload. Normally redmystic will do this for you but that will overwrite your prices with what's in the virtuemart so make sure the module is not published to avoid overwrite. This is probably the only case where you wouldnt want the module turned on.

 

The product feed is located here: components/com_redmystic/archives/prods.xml

where prods.xml is the name that is in the configuration.

 

If you decide to take a crack at changing redmystic then you'll want to look at administrator/components/scpodmgr.php around line 1891 for pricing.

 

 

Cheers,

Garry

IP Logged
Page #