Pk
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Product Variable Variation URLFound this from here: https://stackoverflow.com/questions/33202678/woocommerce-how-to-link-to-product-variation
Further to the last poster, I couldn’t get his code to work properly, but I did discover that WooCommerce generates these for the Cart most of the time:
Visit a variation product yourself
Add a variation to the Cart
Open your cart and hover over the item –> the link in your status bar (or right click > Copy Link Address) is it!
It should have a suffix like this: https://website.com/product/product-name/?attribute_colours=GreyNote that colours is lowercase because it’s the slug while Grey is the actual name for the Variation.
For spaces in your Variation name, use a + instead of the space.
For selecting multiple variation attributes, I believe you can just start with & and spit the ?attribute_[slug]=Variation again.
using the following search term: Product+Variable+Variation+URL
Forum: Plugins
In reply to: [WooCommerce] Ship to Different Address Changes Selected Shipping Methodjust my 2c but isn’t it because it’s a completely different shipping option? Although you’ve called it by the same name “Flat Rate Shipping” it’s not actually the same at all.
What happens is the page reloads the shipping options, and the first option is automatically selected, which happens to be “Free local pickup”.
You could either delete “free local pickup” or switch the order in the admin side, but I understand this doesn’t actually solve the issue, it’s more of a workaround.
But as far as I can see this is expected behaviour, as the shipping methods have to be reloaded based on the changed zone.
Forum: Plugins
In reply to: [WooCommerce] how to configure for “spend $X, receive a free gift” ?Sound like the job for a plugin : https://woocommerce.com/products/free-gifts-for-woocommerce/
Forum: Plugins
In reply to: [Autoptimize] Preconnect href not addedAh failed to realize I added spaces after each entry.
@futureself: Add the list comma separated without any spaces. ??
- This reply was modified 4 years, 8 months ago by Pk.
Forum: Plugins
In reply to: [Autoptimize] Preconnect href not addedYes completely cleared.
Not sure if it could be something misconfigured on my side, but looking at the autotomize website https://autoptimize.com/ there are also no preconnect hrefs unless you aren’t using any ??
Using the parent theme cannot even load the admin:
Warning: Cannot modify header information - headers already sent by (output started at /home/-/public_html/wp-content/themes/appointment/child_theme_compatible.php:28) in /home/-/public_html/wp-includes/functions.php on line 6221 Warning: Cannot modify header information - headers already sent by (output started at /home/-/public_html/wp-content/themes/appointment/child_theme_compatible.php:28) in /home/-/public_html/wp-admin/includes/misc.php on line 1282 Warning: Cannot modify header information - headers already sent by (output started at /home/-/public_html/wp-content/themes/appointment/child_theme_compatible.php:28) in /home/-/public_html/wp-includes/pluggable.php on line 1281 Warning: Cannot modify header information - headers already sent by (output started at /home/-/public_html/wp-content/themes/appointment/child_theme_compatible.php:28) in /home/-/public_html/wp-includes/pluggable.php on line 1284
- This reply was modified 4 years, 9 months ago by Pk.
Forum: Plugins
In reply to: [WooCommerce] Your store’s uploads directory is browsable via the web. We …I have the same error, however:
Server architecture Linux 3.10.0-957.21.3.el7.x86_64 x86_64
Web server Apache
PHP version 7.3.18 (Supports 64bit values)Set folder perms to 750 but the error message still appears.
Forum: Plugins
In reply to: [Ultimate Carousel For WPBakery Page Builder] No option to hide authorUntil it’s disabled through the code the fix is:
.mega-post-meta {
display: none;
}Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] Sitemap has no linksOh how dense…
Yes I had in fact selected the do not index my site, I thought I was logged into another similarly named site that is still staging :facepalm:
Thanks, folks I really need to be more careful!!!!
Forum: Plugins
In reply to: [The SEO Framework – Fast, Automated, Effortless.] Sitemap has no linksIt gets weirder, it comes up as a 404 if I’m not logged in
If I’m logged in here’s what it looks like:
name — XML Sitemap
This is a generated XML Sitemap, meant to be consumed by search engines like Google or Bing.You can find more information on XML sitemaps at sitemaps.org.
URL Last Updated
— ————-
Generated by The SEO FrameworkForum: Plugins
In reply to: [Custom Post Type UI] Changing taxonomy metaboxAh fantastic!
Not attached to Gutenberg for this project at all. Will revert.
Thanks so much!
- This reply was modified 5 years, 7 months ago by Pk.
Forum: Plugins
In reply to: [Custom Post Type UI] Changing taxonomy metaboxThanks for the speedy reply!
I don’t quite understand though, the instructions underneath the field say “Sets a callback function name for the meta box display. Hierarchical default: post_categories_meta_box, non-hierarchical default: post_tags_meta_box. To remove the metabox completely, use “false”.”
Am I using it incorrectly?
Forum: Plugins
In reply to: [Ajax add to cart for WooCommerce] Add to cart toggle class “show drawer”So I managed to sort of get it working with
<script> jQuery( function( $ ) { $( document ).on('click', '.single_add_to_cart_button', function(e) { $('body').toggleClass('drawer-open'); }); }); </script>
However I would much prefer to use the
added_to_cart
but that doesn’t seem to be working.Any thoughts?
That’s great, on clearing my Cloudflare cache it does affect it. Looking forward to a cacheing friendly option
Forum: Plugins
In reply to: [WooCommerce Payfast Gateway] Can payment option be selected at checkout?Hi @fernashes
Thanks for the reply. Perhaps the API has been updated recently, but if you have a look at the payfast API here: https://developers.payfast.co.za/documentation/#checkout-page
While these fields are optional, it is highly recommended to provide this information (if available) as it is used to pre-populate any forms the user needs to fill in to complete payment. It decreases the time taken to complete the transaction and improves the rate of successful payment completion.
NAME DESCRIPTION REQUIRED FORMAT
name_first The buyer’s first name. Optional alphanumeric, 100 char
name_last The buyer’s last name. Optional alphanumeric, 100 char
email_address The buyer’s email address Optional alphanumeric, 100 charAnd Also: Set Payment Method
NAME DESCRIPTION REQUIRED FORMAT
payment_method When this field is set, only the payment method specified can be used when the buyer reaches PayFast.If this field is blank, or not included, then all available payment methods will be shown.
The values are as follows:
‘eft’ – sets eft payment method
‘cc’ – sets credit card payment method
‘dc’ – sets debit card payment method
‘bc’ – sets bitcoin payment method
‘mp’ – sets masterpass payment method
‘mc’ – sets mobicred payment method
‘cd’ – sets cash deposit payment method
‘sc’ – sets SCode payment methodCould these variables be sent to payfast?