• Resolved Freshy

    (@freshysites)


    Hello,
    Does CTX Feed plugin support support nested XML elements for shipping?
    I ask because I am using a custom field I created, which contains the price of shipping (the reason for this custom field is the site uses the Woo Per Product Shipping plugin, and it’s custom fields don’t include price). According to Google there are more requirements than just price, like Country etc. I tried using this format US:::6.49 USD by adding it like this in the CTX Feed editor

    which outputs like this in the XML feed
    <g:shipping>US:::6.49 USD</g:shipping>

    but according to Google, for XML feeds it has to be nested as seen below from their help page. Can you help point me in the right direction? I simply need Price and Country. Thanks!

    
    Include the optional sub-attributes if you need them. To specify a shipping cost for different delivery locations, submit the shipping [shipping] attribute multiple times including the relevant sub-attributes for each.
    
    
    <g:shipping>
    
      <g:country>US</g:country>
    
      <g:region>MA</g:region>
    
      <g:service>Express</g:service>
    
      <g:price>15.99 USD</g:price>
    
      <g:min_handling_time>1</g:min_handling_time>
    
      <g:max_handling_time>3</g:max_handling_time>
    
      <g:min_transit_time>2</g:min_transit_time>
    
      <g:max_transit_time>5</g:max_transit_time>
    
    </g:shipping>
    • This topic was modified 1 year, 6 months ago by Freshy.
    • This topic was modified 1 year, 6 months ago by Freshy. Reason: edited for clarification of context for why I am doing it this way
Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Freshy

    (@freshysites)

    This is not solved, but I wanted to update that I was able to get around this by wedging the tags in like so:
    Prefix: <g:country>US<g:price>
    Suffix: USD</g:price>

    Not ideal but working for now.

    Plugin Support ansarybadal

    (@ansarybadal)

    Hi @freshysites

    The format US:::6.49 USD seems correct, and it should have worked, but I’m not sure why it’s not working in your case.

    However, glad to know that you have managed to find a solution.

    Thank you,

    Thread Starter Freshy

    (@freshysites)

    Hello,

    The issue isn’t resolved – I’m trying to explain that since the feed the plugin generates is in XML format, “US:::6.49” is not valid, it needs to be structured with individual <g:tags> within <g:shipping> like I laid out in the original post (as per google’s instructions). My workaround is not ideal. The plugin needs to be able to nestle <g:country> and <g:tags> etc within the [shipping] attribute

    Include the optional sub-attributes if you need them. To specify a shipping cost for different delivery locations, submit the shipping 
    [shipping]
     attribute multiple times including the relevant sub-attributes for each.
    
    
    <g:shipping>
    
    
      <g:country>US</g:country>
    
    
      <g:region>MA</g:region>
    
    
      <g:service>Express</g:service>
    
    
      <g:price>15.99 USD</g:price>
    
    
      <g:min_handling_time>1</g:min_handling_time>
    
    
      <g:max_handling_time>3</g:max_handling_time>
    
    
      <g:min_transit_time>2</g:min_transit_time>
    
    
      <g:max_transit_time>5</g:max_transit_time>
    
    
    </g:shipping>
    Plugin Support ansarybadal

    (@ansarybadal)

    Hi @freshysites

    Please, share the feed link and the error report.

    Thread Starter Freshy

    (@freshysites)

    I’ve now purchased the pro plugin, and my workaround doesn’t work anymore – the tags are stripped when I include them in Prefix or Suffix. In fact, anything I put in is being stripped out of the prefix and suffix area, when looking at the xml. I am using a custom field, perhaps this is why – but it worked fine in in the free version. This appears to be a bug in the PRO plugin



    Thread Starter Freshy

    (@freshysites)

    waiting a week for this to be fixed in the PRO version, your devs are aware of the issue, can you provide a fix for this?

    Plugin Support ansarybadal

    (@ansarybadal)

    Hi @freshysites

    Please, follow up on the ticket you have created.

    @ansarybadal

    Why is this bug not fixed?

    Google Merchant error:

    Missing shipping sub-attribute [max transit time (sub-attribute of [shipping])]

    I am having the same issue. No one seems ro know how to help

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Shipping] requirements – invalid format’ is closed to new replies.