Google Products For Multiple Categories

  • Posts: 31
  • Thank you received: 0
10 years 10 months ago #138708

-- url of the page with the problem -- : drc144k.com/
-- HikaShop version -- : 2.2.2
-- Joomla version -- : Tried on 2.5.14 - 2.5.16
-- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem.
-- Browser(s) name and version -- : Firefox, Chrome, Opera
-- Error-message(debug-mod must be tuned on) -- : NONE

We wrote custom code to handle multiple categories submitting to Google Products on top of HikaShop 2.2.2. In the latest version I see there are fields for categories, age, gender, etc added to the admin. Luckily updating to 2.2.3 and/or 2.2.4 did not overwrite our custom code so the products are still submitting to Google properly.

I would love to remove our code and use HikaShop code only. Is it possible to submit products from different categories, different colors, different sizes, etc to Google? Or would we still need to have custom code in the plugin to handle that?

Ex of what we submit with our custom plugin code:
PROD1-UPC,T-Shirt, White, S-M-L-XL, Adult,Men
PROD2-UPC,T-Shirt,Yellow,S-M-L,Adult,Women
PROD3-UPC,Jacket,Gray,L-XL,Adult,Unisex

Is this type of submission possible with Hikashop 2.2.4 version of the Google Products plugin? If so, what's the syntax/setup we need to do?

Thanks.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 10 months ago #138821

Hi,

Yes it's possible. You need to create custom fields of the table "product" via the menu Display>Custom fields, one for each attribute so that you can configure the attributes in each product.
Then, in the options of the plugin, you enter the column name of the field in the input of the corresponding attribute and HikaShop will use the value of the field in each product for that attribute.

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

  • Posts: 31
  • Thank you received: 0
10 years 10 months ago #138836

Excellent!! It appears you used the same logic we used AND you made the admin piece for it. Great job!

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

Time to create page: 0.059 seconds
Powered by Kunena Forum