gianni333
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Issue with downloadable products over 1 GBHi and thanks for the answer. The problem exists for any file larger than 1 GB. It just stopps downloading after about 500 MB. This goes both for the “force downloads” and the “X-Accel-Redirect/X-Sendfile” option. I’ve read that “redirect only” should work, but I can’t use that option in order to protect the files.
Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] Trying to make a dynamic button linkQuick update: Since I designed my product template with the Anywhere Elementor plugin (and since I’m not too much into php and didnt want to mess up the site by editing the php files directly^^), I couldn’t manage to place the button inside the anywhere elementor product template in another way than by using as the shortcode widget, so I tried again to make the shortcode work. The result, which seems to work now is:
function buy_now_button_shortcode() {
global $product;
$id = $product->get_id();
$url = home_url(‘/checkout/?add-to-cart=’.$id);
echo do_shortcode(‘[maxbutton id=”9″ url=”‘ .$url . ‘”]’);
}
add_shortcode(‘buynowbutton’, ‘buy_now_button_shortcode’);Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] Trying to make a dynamic button linkThanks for the indetail answer, I’m new to coding but I think I just learned some new basics about it thanks to you. Thanks for that. I’ll probably be best of using the code snippet plugin to safely add this code:) Since I can not choose where the code is added I’ll have to do what you suggested and pass the $product_id to the function.
Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] Trying to make a dynamic button linkCool thanks for the help! Much appreciated!
To make it possible to add the button into the products template I tried to make a shortcode out of it by adding this code snipped to my template via the code snippet plugin:
function buy_now_button_shortcode() {
$url = home_url(‘/checkout/?add-to-cart=’.$product_id);
echo do_shortcode(‘[maxbutton id=”9″ url=”‘ .$url . ‘”]’);
}
add_shortcode(‘buynowbutton’, ‘buy_now_button_shortcode’);It seems to work, the button is there and it’s linking to the cart but it does not add the product to the cart, I think it doesnt get the current product id.
Did I make a mistake with the code?
Forum: Themes and Templates
In reply to: [OceanWP] Cookies in Ocean WpGreat! thanks for the awesome support as always:)
Forum: Themes and Templates
In reply to: [OceanWP] Cookies in Ocean WpHi thanks a lot for the answer. I no that’s not really about the ocean wp theme now, but is there some option in wordpress that shows or where you can set how long cookies are stored? Or is that something that needs to be looked up seperately for every plugin etc which store cookies?
Forum: Plugins
In reply to: [WordPress Button Plugin MaxButtons] Trying to make a dynamic button linkI’ve been trying to implement the function described here (https://www.presstigers.com/how-to-add-a-quick-buy-link-in-woocommerce-without-a-plugin/) with a maxbutton.
Thanks for the tip with the name attribute I’m already using this feature on other maxbuttons, will definitely use it on this one too.
Thanks for your answer, it works perfectly now, I made a mistake with the trigger.
Forum: Plugins
In reply to: [Advanced Woo Search] Small preview images in search result distortedworks perfectly! thanks a lot for your help!
Thanks, I will check for plugins to duplicate the pop ups.
The shortcode would be the perfect solution for me, unfortunately I’m not really into coding so I can’t make my own shortcodes.
Forum: Themes and Templates
In reply to: [OceanWP] Customize Woocommerce QuickviewGreat thanks a lot!
Forum: Themes and Templates
In reply to: [OceanWP] Customize Woocommerce QuickviewSo I can’t use something like custom CSS to style e.g. the product title differently in the quickview than on the product page, make it smaller or a different color or so?
I’m using Anywhere Elementor and Elementor to build my single product page template I use on all products. I added the button there but it is not visible in the quickview.
By the way many thanks for taking the time to answer all these questions on a sunday, that’s definitely not something everyone would do:)
Forum: Themes and Templates
In reply to: [OceanWP] Customize Woocommerce QuickviewI don’t have a link to show what I’d like to do, but it is:
-adding a custom button via shortcode right next to the existing “add to cart” button
-customize the text size and color of the title and short description, so that it doesn’t have to be the same as in the single product page
Forum: Plugins
In reply to: [Woo Credits] Functionality QuestionHi, no worries, the shortcode brandon told me to use was ‘user_credits’. It is a Platinum Version feature so it won’t work if you have the free version. (I don’t have Platinum yet, so I couldn’t test it myself until now)
Forum: Plugins
In reply to: [Woo Credits] Functionality QuestionAllright, I thought so. Thank you for the fast answer:)