Announcement

Collapse
No announcement yet.

Include Hidden Products in google-products.xml

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Include Hidden Products in google-products.xml

    Client has many products with price == '0' and the pricing is done by component prices. For example the product is a blade and the Component Attribute Choices carry the respective prices.

    Andy Barrow of Copdepath.biz has a plugin to convert the Choices into Hidden products. However I have been doing some testing with hidden products in general and they are not included in google-products.xml

    I have been playing with the layout 'Google Product Feed Layout' in particular the Blockif that seems to decidw which products are inclkuded but I cannot get the hidden products to be inclkuded in the product feed.

    Please can anyone advise? Thank you

    This is the BlockIf:
    Code:
    (<actinic:variable name="IsGoogleExportExcludeNotForSaleItems" /> == 0 OR
    (<actinic:variable name="IsGoogleExportExcludeNotForSaleItems" /> AND <actinic:variable name="CanBeOrderedOnline" /> == 1 AND <actinic:variable name="IsInStock" />))
    AND
    (<actinic:variable name="IsGoogleExportExcludeDuplicate" /> == 0 OR
    (<actinic:variable name="IsGoogleExportExcludeDuplicate" /> AND
    <actinic:variable name="DuplicateIndex" /> == -1))
    AND
    <actinic:variable name="IsProductExcludedFromGoogleExport" /> == 0
    AND
    (<actinic:variable name="ProductPriceRaw" />  != "" AND <actinic:variable name="ProductPriceRaw" />  > 0 AND <actinic:variable name="VisibleForRetailCustomers" /> == 1)
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Probably the easiest way to find the problems is just to write a short bit of php to print out the value of each of the variables. That should show you what is blocking them.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Hi Jonathan, what are you trying to achieve with this? If a hidden product is included in the Google feed, it's link will generate a 404 error and Google will reject it.

      If you're trying to get a separate entry for each permutation of a product, then you need to take the entries from the permutation list. Each entry should use the main product ID for the <g:item_group_id>. Each permutation then needs a unique ID. The permutation barcode is the best field for that, or the barcode or product reference from the hidden product. This is how the more advanced feed in v18 works. You may be able to adapt the layout for v16. But the v18 version relies on some new variables that don't exist in v16 - for the shipping calculation, IIRC.
      Bruce Townsend
      Ecommerce Product Manager
      Sellerdeck Ecommerce Solutions

      Comment

      Working...
      X