Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Problems moving elements on product display pages

Problems moving elements on product display pages

Views: 1,364

Results 1 to 7 of 7
28 Oct 2013, 4:12 AM
#1
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Problems moving elements on product display pages

I've been trying to move things like Main Product Image, Product Price Block, Category Icon, etc. from the top of the page to the bottom, next to the product attributes.

I've been trying to move the appropriate blocks in the tpl_product_info_display.php file, everything between the <!--bof><!--eof> pairs like I've done before, but no dice. When I move the Product Price Block it doesn't fire anything out there, when I move the Main Product Image the page goes blank except for the breadcrumbs.

I realize I'm missing something but I must be looking in the wrong direction.

http://www.shakatourshonolulu.com/zencart/index.php?main_page=product_info&cPath=&products_id=181

is one of the product pages. I'm eventually trying to move those elements from the top to the bottom so it's together with the attributes like it is on our existing page (http://www.shakatourshonolulu.com/ecotours/hanaumabaysnorkeling.html).

29 Oct 2013, 4:08 AM
#2
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Re: Problems moving elements on product display pages

myDEBUG tells me it's a PHP Parse error and that there's an unexpected '{' at line 136 of my tpl_product_info_display.php but I don't see one:

/$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';

so i'm guessing one is being inserted for some reason?

29 Oct 2013, 5:30 AM
#3
cvhainb avatar

cvhainb

Zen Follower

Join Date:
Sep 2008
Posts:
212
Plugin Contributions:
19

Re: Problems moving elements on product display pages

Remove /

$one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
29 Oct 2013, 7:36 PM
#4
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Re: Problems moving elements on product display pages

cvhainb:

Remove /

Oops that was a typo. The backslash isn't actually part of my code.

The same thing happens to me when I try to move the add to cart block, the breadcrumb loads and everything after that gets cut off and I get a blank page.

31 Oct 2013, 2:11 AM
#5
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Re: Problems moving elements on product display pages

ok, somewhere along the line I must have dropped an extra character in the file or deleted something or I don't know what. After days of tinkering around and going through all sorts of resources I just reloaded a fresh copy of tpl_product_info_display.php and it works fine.

1 Nov 2013, 12:15 AM
#6
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Problems moving elements on product display pages

What browser are you checking in? I am using FireFox and this section

<h4>Notes</h4> Bring $7.50 for admission into the Nature Preserve. Wear waterproof sunscreen. Seriously.

Is dropped down inside your form. It looks fine in Opera. don't know about ie (don't use it)

Looks like you are missing some html tag

3 Nov 2013, 11:56 PM
#7
mike_d_1 avatar

mike_d_1

New Zenner

Join Date:
Sep 2013
Location:
Honolulu, HI
Posts:
88
Plugin Contributions:
0

Re: Problems moving elements on product display pages

I was checking chrome and firefox and ie is usually the last thing I check and yeah elements were encroaching into the form but all I need to do is throw a br class="clearBoth" in there somewhere and that should clear it all up.

I'm really just focusing on getting everything working before tackling a lot of the visual things.

I replaced the tpl_product_info_display.php with the original zen cart file and that appears to have cleared up the problems I was having with the blank page. Otherwise I'm not sure what the problem is. I've got a pretty good grip on html and css but the php thing is new to me, so I'm trying real hard to not get bogged down with those problems, and I've been using the forums to help me bridge a lot of the gaps that the tutorials leave.

Thanks for your concern. There will be more questions :)