Hikashop Google Products Plugin

  • Posts: 194
  • Thank you received: 15
  • Hikashop Business
10 years 5 months ago #194062

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4
-- PHP version -- : 5.4.37
-- Browser(s) name and version -- : chrome

The problem concerns the weight of the product, which is defined shipping weight. Given the value of 20.000 kg and google merchant is read as 20 000 kg or 20 tons. Writing in the xml-u is <g: shipping_weight> 20.000 kg </ g: shipping_weight>
What is wrong?

The second issue. With version Hikashop business I wanted to set the cron send information to google merchant at two sites (various shops). Unfortunately, you can set only one - need to enter your address in the configuration store on hikashop cron.
How do I set up a cron to several shops?

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 5 months ago #194087

Hi,

The google product plugin display the value which is stored in the database.

$xml .= "\t".'<g:shipping_weight>'.$product->product_weight.' '.$product->product_weight_unit.'</g:shipping_weight>'."\n";
Google should understand that the point is the decimal separator, like it does for the prices.
Otherwise, you can force the conversion of the weight into a float number
$xml .= "\t".'<g:shipping_weight>'.(float)hikashop_toFloat($product->product_weight).' '.$product->product_weight_unit.'</g:shipping_weight>'."\n";

About your cron issue ; I'm sorry but the HikaShop license is providing support/updates/cron for one single website.
If you want to have cron on other website with having a license, you will have to configure the CRON youself in your server.
www.hikashop.com/support/documentation/i...ashop-cron-task.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 15
  • Hikashop Business
10 years 5 months ago #194251

Hi,
Google - the problem is that in another shop reads the importance of properly, with the same record :(
The question of whether google, bad reads or xml is prepared in accordance with the guidelines of google. Here you just have integration with external component to which we (Hikashop) must adjust according to the instructions.

Cron
In your admin panel I have such two positions:
Enter the full path, eg.. /skrypt-cron.php (which is the file in my case?)
An optional list of arguments, eg. --debug (Should look like these options?)

Please Log in or Create an account to join the conversation.

  • Posts: 84220
  • Thank you received: 13673
  • MODERATOR
10 years 5 months ago #194314

Hi,

As explained in the link provided by Jerome, the full path for your cron task should be:
www.yourwebsite.com/index.php?option=com_hikashop&ctrl=cron

Or something like wget:
www.hikashop.com/support/documentation/i...ron-task.html#server

Otherwise, If you have difficulties with your hosting company in order to setup the cron, you can always purchase a second subscription to HikaShop and you'll be able to have a second cron handled by our own servers.

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 15
  • Hikashop Business
10 years 5 months ago #194459

Hi,
Cron provider now works correctly :)
Question - how it is configured to transfer data to a server googla if the plugin is set to enable auto update. Posting once a day at the specified time. Where is it configured?

Please Log in or Create an account to join the conversation.

  • Posts: 84220
  • Thank you received: 13673
  • MODERATOR
10 years 5 months ago #194490

Hi,

You have two ways to configure it.
1. You can enter in the plugin settings the file name and the FTP username and password provided in your Google Merchant account and the Google products plugin will send the XML based on the "Frequency" and "Last update" fields of the plugin.

2. You can enter only the loca patch where you want the plugin to generate the XML file and then give the URL to the XML file in your Google Merchant account so that it will be Google which will be download the XML file from your website and the plugin will just update the XML file regularly.

Both the frequency and the last update fields are in seconds. The frequency will determine the number of seconds the plugin will wait before processing the XML. The last update is the number of seconds between the st of January 1970 and the last time the cron was run. So by modifying both settings you can configure at what time the XML should be sent every day.

Please Log in or Create an account to join the conversation.

  • Posts: 194
  • Thank you received: 15
  • Hikashop Business
10 years 5 months ago #194645

Hi,
Thank you for the information. Now it's all clear :)
The strange thing is the weight saving googla interpretation. In another shop interpretation runs properly :(

Please Log in or Create an account to join the conversation.

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 5 months ago #194664

Hi,

It is strange because the weight is display in the same way than the price and I can't find any documentation which explain it.
So the number is just a number, the decimal separator is the right one (and the same than for the price) so I don't understand why your weight is not right processed by google.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum