Products Measures/Dimensions

Open to all! Ask other shopowners for help.
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Products Measures/Dimensions

Post by Kofod95 »

Omar_one wrote: Sun Jun 26, 2022 11:44 am the zip file missing the hook (includes\hooks\admin\catalog\productMeassures) and the hook language file
Br
Omar
:oops:
Zip should be updated now. Thank you!

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
Omar_one
Senior Contributor
Posts: 679
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Products Measures/Dimensions

Post by Omar_one »

@Kofod95 on product_info page I got error when I try to Show in metric/imperial scale
the error I got it if Default is metric and if the product don't have weight
the error

Code: Select all

Warning
: Illegal string offset 'imperial' in
C:\xampp\xxxxx\test\includes\modules\pi\product_info\templates\tpl_pi_meassures.php
on line
27
changing the line 27 to

Code: Select all

 <?php if(empty($products_weight > 0)) echo sprintf(PI_MEASSURES_DISPLAY_WEIGHT, $products_weight[$anti_scale], $weight_meassure[$anti_scale]); ?>
the error gone

BTW. there is two button for showing in metric/imperial scale (product_info page)

Br
Omar
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Products Measures/Dimensions

Post by Kofod95 »

Omar_one wrote: Sat Jul 02, 2022 7:27 pm

Code: Select all

Warning: Illegal string offset 'imperial' in
C:\xampp\xxxxx\test\includes\modules\pi\product_info\templates\tpl_pi_meassures.php
on line 27
Thank you - I have corrected this and done some cleaning.
Omar_one wrote: Sat Jul 02, 2022 7:27 pm BTW. there is two button for showing in metric/imperial scale (product_info page)
:oops:
I guess I should leave things for a day and come back with fresh eyes..
Thank you!

//Daniel
You do not have the required permissions to view the files attached to this post.
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Omar_one
Senior Contributor
Posts: 679
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: Products Measures/Dimensions

Post by Omar_one »

@Kofod95
Everything seems to be good


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply