Skip to main content
Magento

Return to Question

Notice removed Authoritative reference needed by Community Bot
Bounty Ended with no winning answer by Community Bot
Tweeted twitter.com/StackMagento/status/1268422239155781634
added 41 characters in body
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

sometimes in console i get this error,

Uncaught Error: no such method 'activate' for tabs widget instance

Please check this n share your ideas.

Thanks in Advance!!

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

sometimes in console i get this error,

Uncaught Error: no such method 'activate' for tabs widget instance

Thanks in Advance!!

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

sometimes in console i get this error,

Uncaught Error: no such method 'activate' for tabs widget instance

Please check this n share your ideas.

Thanks in Advance!!

Notice added Authoritative reference needed by Jafar Pinjar
Bounty Started worth 50 reputation by Jafar Pinjar
added 115 characters in body
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

sometimes in console i get this error,

Uncaught Error: no such method 'activate' for tabs widget instance

Thanks in Advance!!

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

Thanks in Advance!!

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

sometimes in console i get this error,

Uncaught Error: no such method 'activate' for tabs widget instance

Thanks in Advance!!

deleted 1081 characters in body; edited tags; edited title
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147

How Tax calculation applied for two different product with different tax class Review form in magentocustom template not working Magento 2.3.4

I have created 3 Tax Rules as like below

Store -> Tax Rulesenter image description here enter image description here

then created Tax Zones and Rates as like below.

Store -> Tax Zones and Rates

enter image description here enter image description here

Now i have created 3a custom template for the product tax classespage based on the attribute value.

  1. BOOK
  2. EXAM
  3. EBOOK

Nowin my template i am adding 3 productused below code to display the cartreview section.

  1. product with tax class (EXAM) => Price = 1000

2.product with tax class (BOOK) => Price = 1500

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

3.product with tax class (EBOOK) => Price = 2000

How the tax calculation getting applied in this scenario?

Becausecode, i have 3 products in cart with each of them are different tax class and different tax rates with country.

can see the link 'Need clarification in these two scenariosBe the first to review the product

1.Will it apply to the whole cart total? if so which rates gets applied? since we have all 3 in shopping cart'.

  1. The tax calculation will be a product level?

Right now for me tax applied forBut after clicking the cart total, not for individual product level.

If i set custom price for product while adding to cartlink, then the tax amountreview form tab is showing different. I am not cleared how this is working exactlyexpanding.

Can anyone brief about the tax calculation and is there any option to apply tax pro-grammatically to the product when adding to cart, as like we set custom price for the product.help me on this please?

Thanks in advanceAdvance!!

How Tax calculation applied for two different product with different tax class in magento 2

I have created 3 Tax Rules as like below

Store -> Tax Rulesenter image description here enter image description here

then created Tax Zones and Rates as like below.

Store -> Tax Zones and Rates

enter image description here enter image description here

Now i have created 3 product tax classes.

  1. BOOK
  2. EXAM
  3. EBOOK

Now i am adding 3 product to the cart.

  1. product with tax class (EXAM) => Price = 1000

2.product with tax class (BOOK) => Price = 1500

3.product with tax class (EBOOK) => Price = 2000

How the tax calculation getting applied in this scenario?

Because i have 3 products in cart with each of them are different tax class and different tax rates with country.

Need clarification in these two scenarios

1.Will it apply to the whole cart total? if so which rates gets applied? since we have all 3 in shopping cart.

  1. The tax calculation will be a product level?

Right now for me tax applied for the cart total, not for individual product level.

If i set custom price for product while adding to cart, then the tax amount is showing different. I am not cleared how this is working exactly.

Can anyone brief about the tax calculation and is there any option to apply tax pro-grammatically to the product when adding to cart, as like we set custom price for the product.

Thanks in advance

Review form in custom template not working Magento 2.3.4

I have created a custom template for the product page based on the attribute value.

in my template i used below code to display the review section.

<?php echo $block->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Magento_Catalog::product/view/review.phtml")->toHtml(); ?>

with this code, i can see the link 'Be the first to review the product'.

But after clicking the link, the review form tab is not expanding. Can anyone help me on this please?

Thanks in Advance!!

added 147 characters in body
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147
Loading
added 83 characters in body
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147
Loading
Source Link
Jafar Pinjar
  • 1.9k
  • 7
  • 71
  • 147
Loading
default

AltStyle によって変換されたページ (->オリジナル) /