laracroftofficial
Forum Replies Created
-
For $qty=1 I see my standard price instead of discount price!
https://www.awesomescreenshot.com/image/36112261?key=c5a976fee62d45faa8fe69949975bd29
As I wrote in my previous post – this function return discpunt price for exactly quantiny that we set! And we need to GET this parameter from the rule, but not define in function.php
I’ll try to describe my goal – I need to use this layout https://www.awesomescreenshot.com/image/36038410?key=9746c0c28b6d2f0f175fe5a6e8d65c7d for all kind of cart’s status. With shortcode I have this layout only current product is not added to the cart!
I made some changes in my code, and for now I’m on half of way to my goal!
Then I’m using this code with 21 as quantity it’s return me float$result_string = '<div class="price_result">'. $price . adp_functions()->getDiscountedProductPrice($product, 21, $useEmptyCart = true).'</div>';
But I don’t underatsnd how I need to use it with $qty as parameter.
Where I need to get $qty for this? I think that I need to get it from each rule., but HOW?
E.g. I have a rule with two ranges – https://www.awesomescreenshot.com/image/36079431?key=37511ec445ffd792e96693e5c6fd1617
And with two discount prices in frontend https://www.awesomescreenshot.com/image/36079197?key=775e6d039fa1015e9e21e077d7b8b806Thanks for this hint!
But can you explain how exactly I need to do this?
As I understand I need to redefine shortcodeadp_product_bulk_rules_table
with function that you gave me. In my functions.php?
I want to see this layout https://www.awesomescreenshot.com/image/36038410?key=9746c0c28b6d2f0f175fe5a6e8d65c7d
always.
This option “Or do you want to show the whole price on the left side and the discounted price on the right side of the block?”Of course – I applied this rule to current product
https://www.awesomescreenshot.com/image/36038616?key=c011fe407c147cdb76a468f6c96f9032
this is attached images
https://www.awesomescreenshot.com/image/36038410?key=9746c0c28b6d2f0f175fe5a6e8d65c7d
https://www.awesomescreenshot.com/image/36037898?key=83608b2f3dee9d62e65d854bd2138349- This reply was modified 2 years, 2 months ago by laracroftofficial.
Thanks for your help again!
Shortcode work like a charm!
But only if product is not in card – https://www.awesomescreenshot.com/image/35369885?key=f97a061a84c73ae5c3cd945ae6053854
When I added it to the card I see a wrong layout (I want to use first layout from first screenshot)
https://www.awesomescreenshot.com/image/35369837?key=ca66a8ea6cbc9d10465879d865c3217fI found option with customize “Show bulk table on product page”!
But can’t find option “Below price”… (I think we need to override this function for this:
public function getProductTableContent($productId = null, $attributes = array())Sadly…
Can you tell me – is it possible to move block with class “wdp_bulk_table_content” under price in detail page?
I can do it with JS, but I’ll prefer use correct way for thisThanks for your answer!
I already checked this page and trying to change value in these fields.
But as I can understand this field can’t help me:
“Product price html template”
Because of this “Only for products which are already in the cart”
I don’t see any solution for FREE version of your plugin.
Maybe I missed something?