hefterbrumi
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] post_type=product url parameter redirectHi, thanks for the reply.
The site’s address is avialable here: https://dev.heftergallery.com/
Make a search with the magnifying glass in the corner with the phrase “nyaklanc” which means necklace. From the result page there are different categories that you can expand if you click on this below:
Before you click on the link, observe the link that is constructed for each category that can be filtered . Now it will show:
https://dev.heftergallery.com/?s=ekszer&post_type=product&product_cat=44&group_filter=y
this url with the parameters should modify the wp search query out of the box and filter down the results. However If you click on the link it will redirect to the woocommerce default shop page. If I change the url parameters to something else like “post_type=custom_post_type” it works well.
I guess woocommerce has a redirect rule but I have not found any filters for it to disable with a code snippet.
Kissé megkésve de k?sz?n?m a választ. Megpróbáljuk.
Hi!
That is awesome it was helpful. I use the woocommerce plugin. To put it in the billing section I used it like that:
add_filter('woocommerce_checkout_fields', 'custom_mailerl_checkbox_position'); function custom_mailerl_checkbox_position( $fields ) { $fields['billing']['billing_options'] = array( 'id' => 'woo_ml_subscribe', 'label' => __('Subscribe to newsletter'), // Add custom field label 'type' => 'checkbox', // add field typ 'class' => array('input-checkbox'), 'priority' => 7, // Priority sorting option ); return $fields; }
It went in functions.php in child theme.
I have two other questions:
- I noticed that the plugin subscribes the customer as soon as they check the checkbox, and it collects the e-mail address only. Is it possible to collect First and Last name fields too, if they are filled beforehand?
- Is it possible to subscribe the customer only after submitting the checkout form?
Thanks,
B
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Related field raw data problemFollowup:
With woocommerce {@_price} gives an array with one value therefore the code returns 1.
I am not sure if this is how it should be but it works:
function format_price( $price ) { return wc_price( $price[0] ); }
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Related field raw data problemWow, that’s awsome, I didn’t know that. Thanks Paul, I will give it a try.
Hi Perry,
I tried on osx and windows too. Firefox, Chrome, Safari… same. I think it is better If I post a video with the exact steps to reproduce the problem.
I hope it helps.
Thanks,
Bruno
Hi,
Unfortunately I didn’t. I linked the screenshot of my error console on chrome.
To replicate the error:
After the page is fully loaded, I opened the error console. Clicked on one of the tabs above the map (menu items – after “ENTDECKEN SIE UNSERE SPEISEKARTE” in our case), the error shows. I tried in chrome, Firefox, safari. Same behaviour.Kind Regards,
Bruno- This reply was modified 5 years, 4 months ago by hefterbrumi.
No unfortunately this does not solve the situation. I can see that the map reloads itself, however the marker does not reappear.
I looked for js errors in the browser console and found this just after I click different tabs. It is likely to be connected to this problem:TypeError: MYMAP.modernStoreLocator.element is undefined init https://www.pizza-uno-spillern.at/wp-content/plugins/wp-google-maps/js/wpgmaps.js?ver=7.11.32b:292 InitMap https://www.pizza-uno-spillern.at/wp-content/plugins/wp-google-maps/js/wpgmaps.js?ver=7.11.32b:89 Untitled https://www.pizza-uno-spillern.at/wp-content/plugins/wp-google-maps/js/wpgmaps.js?ver=7.11.32b:140
- This reply was modified 5 years, 4 months ago by hefterbrumi.
- This reply was modified 5 years, 4 months ago by hefterbrumi.
- This reply was modified 5 years, 4 months ago by hefterbrumi.
Unfortunately I can’t find the code part described in the link. There are similar parts but no the same ??
I will try that and let you know. Thank you!
Sorry the title says the above container contains an accordrion but those are tabs. Should be the same scenario however.