Skip Navigation

[Resolved] Add to cart button – clean URL output

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by gwendolynG 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1087775
Screenshot from 2018-08-20 16-13-31.png

Tell us what you are trying to do?

We're running SEO checks now that the site is up, and we're finding "unfriendly URLs" on the home shop page, such as anything with the add-to-cart button. For example, outputting "?add-to-cart=29081" for a product to auto-add to the cart.

Our template code is:

<div style="container">
<div class="onlinesystems-template-view">
<div class="view-templatecenter">
[wpv-post-featured-image size="shop-products"]</div>
<div class="row">
<div style="link-price">
<h4>[wpv-post-link]</h4>
<h5>[wpv-woo-product-price]</h5>
</div>
</div>
<div class="btn-group onlinesystems-template-buttonblock">
<span>[wpv-woo-buy-or-select]</span><span>View</span>
</div>
</div>
</div>

So I'm wondering if it has to do with the wpv-post-url? Since I'm still learning your system, this is a bit of a curve right now.

Is there any documentation that you are following?

I searched in the help forums and attempted to look at the docs, but there's so much info it's like trying to herd cats.

Is there a similar example that we can see?

I attached a screenshot of what we'd like to clean up with the add-to-cart buttons.

What is the link to your site?

hidden link

#1088252

Hello,

I assume we are talking about the shortcode [wpv-woo-buy-or-select], see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-buy-or-select
There isn't such an option can output the "friendly URLs", if you agree, we can take it as a feature request, our developers will evaluate it.

#1088519

Is there any way to alter this output via functions.php perhaps? I'm not one of your developers, so I'm not sure if this is possible, but could you find out from one of your developers on the team?

And yes, please do forward this feedback, because I feel this is needed. When it comes to SEO, these little things do matter. It would be nice for your plugin to allow PHP/Apache rewrites... something... to clean this output/URL up.

#1088534
Screenshot from 2018-08-21 09-46-58.png

Also, we're having this same issue:

https://toolset.com/forums/topic/views-extra-css-ie7-and-extra-css-added-for-maps/

Again, no attention is being paid to SEO, and this is disappointing. The forum mentions something about being able to dequeue these in an upcoming release... has that happened? Can we remove them somehow?

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/split-add-to-cart-button-clean-url-output/

#1089162

Q)Is there any way to alter this output via functions.php perhaps?

No, there isn't any existed "alter this output via functions.php", as I mentioned above, if you agree, we can take it as a feature request.

For other new question, please check the new thread:
https://toolset.com/forums/topic/split-add-to-cart-button-clean-url-output/

#1089565

Yes, please add this to the development request, it needs to be part of your product. For me personally, I will hesitate on using this product again due to this, because non-clean plugins kill SEO scores.