Jump to content
Claudia M

data equalizer

Recommended Posts

Hi,

How can I get the price and more info and add to basket buttons to line up when I have three lines of name for an item versus two lines?  (Move it down when 2 lines)  All this and keep the panel the same size throughout.

Thanks for any and all help

panel-data-equalizer.PNG.72abfbf38801f9adee8952aa5d307301.PNG

Share this post


Link to post
Share on other sites

The following is applicable to the skin you are using.

There is a simple edit. The Equalizer needs to not know about the buttons, so that everything above the buttons has the same height.

In content.homepage.php, find code that looks like (I may not have it exactly, especially the price code):

				<h6 class="pad-top">
					<a class="black" href="{$product.url}" title="{$product.name}">{$product.name}</a>
				</h6>
				<div class="med bold pad-bottom"> {$product.price}</div>
				<div class="row collapse thinmarg-top show-for-medium-up">

Change to:

				<h6 class="pad-top">
					<a class="black" href="{$product.url}" title="{$product.name}">{$product.name}</a>
				</h6>
				<div class="med bold pad-bottom"> {$product.price}</div>
</div>{* Moved here from after buttons *}
				<div class="row collapse thinmarg-top show-for-medium-up">

Then find:

				<input name="add" value="{$product.product_id}" type="hidden">
			</div>
			<input name="token" value="3c71658f782746c1ccc7cfc5e0befc41" type="hidden">
		</form>
	</li>

Change to:

				<input name="add" value="{$product.product_id}" type="hidden">
{*			</div> Moved above buttons *}
			<input name="token" value="3c71658f782746c1ccc7cfc5e0befc41" type="hidden">
		</form>
	</li>


Note: The line with <input name="token"> may or may not be present. If not present, do not add it.

This commented out an existing </div> and added it back higher in the code.

There will be a similar edit in content.category.php, the <div class="product_grid_view hide"> section.

Although it seems your content.category.php template is already coded to do this.

You will probably need to have CubeCart clear its internal cache.

Edited by bsmither

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...