leytech / Leytech_RatingStars

A Magento extension to replace the product rating radio inputs with selectable stars
MIT License
1 stars 2 forks source link

How to make it work on custom theme? #3

Open LuizSantos1 opened 3 years ago

LuizSantos1 commented 3 years ago

Hi there, I know that most developers have migrated to Magento 2, but I have decided to stay with OpenMage - Magento LTS and most extensions for Magento 1.9 works just fine.

Anyway, below I will describe what I did:

I am using Ultimo Theme, and I have tested disabling Ultimo Theme and enabling Base and RWD Theme. On both works, changing the plugin config.

On Base Theme, I need to enable jQuery, on RWD Theme, I need to disable it.

So far, so good.

But I have tried to make it work on Ultimo Theme, and it did not work. This is what I did inicially: Copied to: app/design/frontend/ultimo/default/template/leytech/ratingstars/form.phtml

It did not work, so I have tried to follow Ultimo's structure path: app/design/frontend/ultimo/default/template/review/leytech/ratingstars/form.phtml

It also, did not work.

So I have decided to change Ultimo's original review form.phtml code so I have copied the module code from: app/design/frontend/base/default/template/review/leytech/ratingstars/form.phtml

To: app/design/frontend/ultimo/default/template/review/form.phtml

This time, it changed the form but the star ratings do not show up.

Inspecting the page, I get this errors:

Uncaught TypeError: $(...).rateYo is not a function at HTMLDocument. (

Is it an error caused by non-registered customers?

The only things I have different with Ultimo are bootstrap and font awesome plugins running as Ultimo use these libs.

I just needed to know how to override this behavior with Ultimo, as Base and RWD Theme's are working fine.

Regards.

loopCM commented 3 years ago

Hello, I have the same problem, have you solved it?

LuizSantos22 commented 3 years ago

@loopCM Sadly not. Try to use Trustpilot, I guess they have a free plan.

loopCM commented 3 years ago

@LuizSantos22 A lot of people don't use Magento 1