Why Failed in admin

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

Hello

Why i get failed in admin for this addon?

I have insert all files

Warning: Modification "Product star rating" failed during operation #2 in includes/templates/man.catalog/views/box_product.inc.php: Search not found in ~/includes/library/lib_vmod.inc.php (Line 210)

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

if you click on the red "Failed", what do you see? Which operation fails? if operation 2 fails (according to the error), that means that it cant find this line:

So find out if this line is present in [b]includes/templates/*.catalog/views/box_product.inc.php[/b]

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

where should this line be inserted in that file 210?

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

No, just open the file [b]includes/templates/man.catalog/views/box_product.inc.php [/b]and look if somewhere in this file is 

present. if you can't find this line, then we have to find another solution for inserting the code.

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

No i don't find this in the file

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

Can you upload the file [b]includes/templates/man.catalog/views/box_product.inc.php[/b] here please?

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

look here

Designer
Από Turkey
Μέλος από Απρ 2019

@blixten insert after product name or before short description. 

<h1 class="title">
        <?php echo $name; ?>
      </h1>

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

In your file [b]box_product.inc.php[/b] you have this line:

Insert this line just above it:

Another option is: in file [b]vmods/product_star_rating.xml[/b]
Change these lines:

<operation method="before">
      <find><![CDATA[
<div class="stock-status" style="margin: 1em 0;">
      ]]></find>

to these lines:

<operation method="before">
      <find><![CDATA[
<div class="buy_now" style="margin: 1em 0;">
      ]]></find>
LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

@jackmaessen

How i show star look on the picture

Can they be made so that the stars are also displayed even if the customer does not press into the product

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

not possible yet with this script

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

Ok thanks

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

Great😀thanks

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

This have same problem not working

What code have you insert now so the stars show on the product page?

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

Do the same as already mentioned above.

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

i have insert but thats not working

The starts show in the product but not utside

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

in vmods: in which file, which operation fails?
Tell me: where do the stars not appear? When you open product?

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

This

if i click in on the product the stars shows

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

okay. Please upload  file: [b]includes/templates/*.catalog/layouts/default.inc.php[/b]

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

i see the problem: 
You have this line in [b]includes/templates/*.catalog/layouts/default.inc.php[/b]
<script src="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'js/app.js'); ?>"></script>
And the add-on triggers on:
<script src="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'js/app.min.js'); ?>"></script>

So: in file [b]vmods/product_star_rating.xml [/b]change


    <file name="includes/templates/*.catalog/layouts/default.inc.php">

  <!-- 1st operation -->
    <operation method="after">
      <find><![CDATA[
<script src="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'js/app.min.js'); ?>"></script>
      ]]></find>```
 to this:
```<!-- 2nd file -->
    <file name="includes/templates/*.catalog/layouts/default.inc.php">

  <!-- 1st operation -->
    <operation method="after">
      <find><![CDATA[
<script src="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'js/app.js'); ?>"></script>
      ]]></find>```
LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

Yes, I have now changed and added and it doesn't work, the code doesn't work, you can let it go so you don't have to keep on with codes. Will remove this until you come up with one that really works as it should.

If that works insert this code in vmods and upload a new update

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

This code not work vmods

<!-- 2nd file -->
    <file name="includes/templates/*.catalog/layouts/default.inc.php">

<!-- 1st operation -->
    <operation method="after">
      <find><![CDATA[
<script src="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'js/app.js'); ?>"></script>
      ]]></find>

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

replace the vmod file
If this not works, you probably modified the original files yourself
And look that file [b]ext/productrating/jquery.star-rating-svg.js [/b]is present

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

No thats not working if i upload this the take the stars away fron the shop.

Yes the file are in the map

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

i don`t have the orginal thema

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

ok. But this add-on is based on the original theme....

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

Ok thats the problem

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

OEPS...forgot something important. It's not a theme issue. 
Please replace this vmod file
if this does not work, then it's due to the theme

LiteCart Fan
Από Sweden
Μέλος από Μαΐ 2022

i have take this file

Look this not working

LiteCart Fan
Από Sri Lanka
Μέλος από Νοε 2023

i had same issue...
<link rel="stylesheet" href="<?php echo document::href_rlink(FS_DIR_TEMPLATE . 'css/app.min.css'); ?>" />
line not found in default.inc.php file head.
same added and found working satisfactorily.

rob
Designer
Από Netherlands
Μέλος από Μαρ 2024
rob

Was playing around with litecart and must say what is the webstore fast!!! Wonder why it's not more populair ? Its way faster then shopify and prestashop. 

I tried to install the rating but seems to not like it site goes blanc and vmod gives a error.

Just checking the basics before i start putting time into the webstore ;)

LiteCart Fan
Από Netherlands
Μέλος από Δεκ 2022

Can you show me the error in the vmod?

Εσύ
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.