Can´t use same variable at another page

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
ccagomes
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Oct 20, 2017 10:22 pm

Fri Oct 20, 2017 10:26 pm

HiI, 'm not an expert. I'll get right to the point. Please help me if possible.

There is a "prod_weight_class" variable that is displayed below the price when the person views the product. I would like this variable to also appear next to the price in the search results in the thumbnails, I already tried adding it in 10x possible ways like I did in other pages and got success, but it did not work out there. IS IT POSSIBLE?

Below the picture and files path of the product page, where it appears, and the search results file where I wanted it to appear. How could I make it?

Details:
Product View Page: public_html/application/views/products/view.php

Search Results Page: public_html/application/views/common/json/product_thumb_template.php
IMAGE.jpg
IMAGE.jpg (166.11 KiB) Viewed 102 times

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 526
Joined: Mon Feb 22, 2016 5:52 pm

Sat Oct 21, 2017 10:02 am

Showing just a picture is not very useful, and a local link to the code is of no use at all.

However you have set up the data, is to blame for your problem or at least the way that you are trying to access it.

What are the ten ways that you have tried to do it?

Post Reply