Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Oscar Gare

    (@oscargare)

    Hi,

    Use & (ampersand) to separate parameters in the URL. The “?” indicates the beginning of the list of parameters, & separates two parameters:
    https://www.productURL.com/?attribute_pa_size=38&wcpbc-manual-country=US

    Review:
    https://www.semrush.com/blog/url-parameters/


    Thread Starter shweta21

    (@shweta21)

    Hello Oscar,

    Thank you for clarifying about & (ampersand) and sharing the valuable link as well.

    I did used “&” earlier once but had some issues. As, if we use “&“, then in that case, it shows 404 error page for the URLs or products that don’t have any variations, that is if they are just Simple product.

    That is, If we set this URL parameter – &wcpbc-manual-country=US to make it look like this –
    https://www.productURL.com/?attribute_pa_size=38&wcpbc-manual-country=US,
    then it ONLY works for variable products (with default variation set)

    However, this same URL parameter &wcpbc-manual-country=US won’t work on Simple products –
    https://www.productURL.com/&attribute_pa_size=38
    or
    https://www.productURL.com&attribute_pa_size=38

    While, if we use “?” like earlier (in our very first response, and as below), then it do not works for variable products with default variation set.
    https://www.productURL.com/?attribute_pa_size=38/?wcpbc-manual-country=US

    And, as far as I assume, we can use the URL parameter (in the suffix column) only once for the whole Feed (including All products of any One Country), and that should be for all products.

    So, how can we make that work for both the Simple as well as variable products (with default variation set).

    Regards

    • This reply was modified 2 days, 12 hours ago by shweta21.
    Plugin Author Oscar Gare

    (@oscargare)

    Hi,
    Please share the site URL so I can see the problem. Thank you.

    Thread Starter shweta21

    (@shweta21)

    Hello,

    Unfortunately, I am not allowed to share the site URL.

    However, I have explained that in details above. Can you please read that again, you will get a fair idea about the concern.

    the only thing is, if we use the URL parameter starting with “?” , then it works for simple products but not for the variable products. Because there is already “?” used earlier for the variation of the parent product. Like this –
    https://www.productURL.com/?attribute_pa_size=38/?wcpbc-manual-country=US

    And if we use the “&” then it works for the variable product (with default variation set) only, and not for the simple products. For simple products it shows 404 error page if & is used as the URL parameter.

    So, how can we make that work for both the?Simple?as well as?variable?products (with default variation set).

    Would appreciate, if you could please read previous message, where I tried to explain in detail.

    I expect you will surely suggest the possibilities and help on this.

    Regards

    Plugin Author Oscar Gare

    (@oscargare)

    The following link must work:
    https://www.producturl.com/?attribute_pa_size=38&wcpbc-manual-country=US

    If you want me to help you, I need the product/site URL. If you cannot share the site URL, you can buy a PRO license and get private support via email.
    Regards.

    Thread Starter shweta21

    (@shweta21)

    Hello Oscar,

    Yes, the link you shared works, but only in case of Variable products (with default variation set).
    I agree.

    But what if we have Simple products as well on the site. That is, product like this-
    https://www.site.com/product/producturl/
    And using the URL parameter – &wcpbc-manual-country=US alone will make simple product URL to be read like this-
    https://www.site.com/product/producturl/&wcpbc-manual-country=US, which ofcourse not works and shows 404 error for the product page.

    So how can we have different URL parameter, each separately for Simple as well as Variable products. That is, So, how can we make that work for both the?Simple?as well as?variable?products (with default variation set).

    I hope I am now able to ask and clarify the concern.

    Regards

    Plugin Author Oscar Gare

    (@oscargare)

    Hi there,
    You are asking me about a fundamental Internet URL concept. Your problem is not related to the Price Based on Country plugin. You can review how the URL parameters work in the following article:
    https://www.semrush.com/blog/url-parameters/

    The ? indicates the beginning of the list of parameters, & separates two parameters.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.