Zen Cart Logo
Forums / Bug Reports / 156a Product preview + others has old style back_buton.gif

156a Product preview + others has old style back_buton.gif

Views: 6,079

Results 1 to 3 of 3
06 Feb 2019, 00:55
#1
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

156a Product preview + others has old style back_buton.gif

zc156a has the old style gif image for the back button rather than the new css style button in
the following files:

admin\coupon_admin.php
admin\coupon_restrict.php
admin\gv_mail.php
admin\includes\modules\document_general\preview_info.php
admin\includes\modules\document_product\preview_info.php
admin\includes\modules\product\preview_info.php
admin\includes\modules\product_free_shipping\preview_info.php
admin\includes\modules\product_music\preview_info.php
admin\reviews.php

06 Feb 2019, 09:22
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: 156a Product preview + others has old style back_buton.gif

Yes that was on purpose. As I could not get the functionality of that button to work in the new style. I asked for help during the development of the new look, but nobody came to aide :(. But if you know how to solve it please make a PR on github :smile:.

22 Feb 2019, 05:18
#3
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: 156a Product preview + others has old style back_buton.gif

Design75:

Yes that was on purpose. As I could not get the functionality of that button to work in the new style. I asked for help during the development of the new look, but nobody came to aide :(. But if you know how to solve it please make a PR on github :smile:.

Stumbled across possible fix, or would modifying zen_image_submit or creating a new one be better...

// echo zen_image_submit('button_back.gif', IMAGE_BACK, 'name="edit"') . '  ';
        echo '<button type="submit" class="btn btn-default" title="' . IMAGE_BACK . '" name="edit" >' . IMAGE_BACK . '</button>  ';

However, btn-default is no longer in bootstrap v4

I know... reading up on PR's today... :shocking: