Forums / General Questions / Adding Date Available with a message to items that will be sold...

Adding Date Available with a message to items that will be sold...

Views: 2,855

Results 21 to 33 of 33
18 Apr 2013, 12:31 AM
#21
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Adding Date Available with a message to items that will be sold...

I agree, maybe we could move it, any suggestions?

Also, When I turn off Display Multiple Products Qty Box Status and Set Button Location, take a look at how the multi qty pricing box and add to cart with qty are not lined up, is there something we could do to make them look nicely lined up.

here is the link: http://www.aydincoins.com/buy-silver/silver-rounds

rbarbour:

Do to the layout style of your product listing page, the reviews would look better under the product image, this would fill up some of the "white space".

18 Apr 2013, 1:15 AM
#23
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

I am not sure who your website designer is/was but he/she made a mess of your product listing page. I would literally have to see entire file, upload it to a test site and reconstruct the layout.

I can keep giving you suggestions and help you move things around but do the added css elements and rules applied to them it could easily alter other css elements and their intended layout.

If you want to PM me your product_listing.php file and stylesheet.css, I will take a look at it at my earliest convenience.

Everything you are asking is doable but not through the forum.

18 Apr 2013, 1:34 AM
#24
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Adding Date Available with a message to items that will be sold...

I agree that my website developer does not have experience in php programming, the template was designed but once we asked for changes things went downhill, I will send you the files.

thank you

rbarbour:

I am not sure who your website designer is/was but he/she made a mess of your product listing page. I would literally have to see entire file, upload it to a test site and reconstruct the layout.

I can keep giving you suggestions and help you move things around but do the added css elements and rules applied to them it could easily alter other css elements and their intended layout.

If you want to PM me your product_listing.php file and stylesheet.css, I will take a look at it at my earliest convenience.

Everything you are asking is doable but not through the forum.

19 Apr 2013, 1:51 AM
#25
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

I emailed you your updated files:

I commented out allot of css element rules that were unnecessary to achieve your desired look:

/*bof product listing*/
/*removed by ZCadditions
.listingDescription {text-align:left;}
.productListing-even {border:1px dashed #ccc;}
.productListing-rowheading {background-image:url(../images/top-menu-bk.jpg);height:30px;color:#fffffd;text-transform:uppercase;display:none;}
.productListing-rowheading a{color:#5c2927;}
.productListing-rowheading a:hover{color:#ccc;}
#productsListingTopNumber {margin-top:15px;margin-bottom:15px;}
#productsListingBottomNumber {margin-top:15px;margin-bottom:15px;}
#productListHeading {margin-bottom:15px;}
.tabTable {border-left:1px solid #dfdfe7;border-right:1px solid #dfdfe7;border-top:1px solid #dfdfe7;}
.productListing-data {border-bottom:1px dashed #ccc;}
#pl-qd-table{margin-top: 20px; margin-left: 1em; margin-right: 1em; margin-bottom:20px;border-top:1px solid #ccc;border-right:1px solid #ccc;border-left:1px solid #ccc;width:150px;}
#pl-qd-table td{padding-left:15px;border-bottom:1px solid #ccc;padding-top:5px;padding-bottom:5px;}
#productListing #askQuestion{margin-top:20px;margin-bottom:20px;}
#productListing .product_detail{margin-top:20px;margin-bottom:20px;}
#productListing .listingDescription{margin-top:20px;}
#productListing .itemTitle{margin-top:20px;}
#productListing .productListing-data{padding-bottom:20px;}
#productListing .pl-price{margin-top:20px;}
#productListing .productListing-odd{border-bottom:1px solid #ccc;}
.productListing-even {border:1px dashed #ccc;}
.productListing-rowheading {background-image:url(../images/top-menu-bk.jpg);height:30px;color:#fffffd;text-transform:uppercase;}
.productListing-rowheading a{color:#fffffd;}
.productListing-rowheading a:hover{color:#ccc;}*/

#productsListingTopNumber {margin-top:15px;margin-bottom:15px;}
#productsListingBottomNumber {margin-top:15px;margin-bottom:15px;}
#productListHeading {margin-bottom:15px;}
.tabTable {border-left:1px solid #dfdfe7;border-right:1px solid #dfdfe7;border-top:1px solid #dfdfe7;}

 /*removed by ZCadditions
   .productListing-data {border-bottom:1px dashed #ccc;}  */

 /*removed by ZCadditions
.pl-qd-table{margin-top: 20px; margin-left: 1em; margin-right: 1em; margin-bottom:20px;border-top:1px solid #ccc;border-right:1px solid #ccc;border-left:1px solid #ccc;width:150px;}
.pl-qd-table td{padding-left:15px;border-bottom:1px solid #ccc;padding-top:5px;padding-bottom:5px;}
   .no-qd{width:150px;height:125px;}  */

 /*removed by ZCadditions
#productListing #askQuestion{margin-top:20px;margin-bottom:75px;margin-bottom:80px;}
#productListing .product_detail{margin-top:20px;}
#productListing .listingDescription{margin-top:20px;text-align:left;margin:left:30px;min-height:80px;}
   #productListing .itemTitle{margin-top:20px;}  */

 /*removed by ZCadditions
#productListing .pl-price{margin-top:20px;font-weight:bold;position:relative;left:150px;}
#productListing .pl-price1{margin-top:20px;font-weight:bold;}
#productListing .pl-input1{position:relative;left:150px;}
#productListing .stars-rating{position:relative;bottom:-10px;}
.pl-shipping{margin-top:105px;width:220px;line-height:12px;margin-left:-205px;}
   .listingProductImage{margin-right:30px;}  */
 
/*changed by ZCadditions*/ 
 /*   #productListing .productListing-data{padding-bottom:20px;}  */
#productListing .productListing-data{padding:5px 5px 20px 5px;border-bottom:1px dashed #ccc;}

/*added by ZCadditions*/
table.pl-table {position:relative;border:1px solid #E9E9E9;background:#F5F5F5;padding:0px 0px 10px 0px;width:200px!important;}
table.pl-table INPUT[type="text"] {position:absolute;margin:10px 0px 0px 0px;left:10px;}
table.pl-table input.listingBuyNowButton {position:absolute;right:0;bottom:0;}

A file that wasn't emailed to me was /includes/templates/YOUR_TEMPLATE_NAME/common/tpl_tabular_display.php

If that file does not exist, create it - or copy it from /includes/templates/template_default/common/tpl_tabular_display.php

In that file (my code line #20) find:

<?php
  for($row=0; $row<sizeof($list_box_contents); $row++) {
    $r_params = "";
    $c_params = "";
    if (isset($list_box_contents[$row]['params'])) $r_params .= ' ' . $list_box_contents[$row]['params'];
?>

change to:

<?php
  for($row=1; $row<sizeof($list_box_contents); $row++) {
    $r_params = "";
    $c_params = "";
    if (isset($list_box_contents[$row]['params'])) $r_params .= ' ' . $list_box_contents[$row]['params'];
?>

That will remove the 1st row (column headers) from your product_listing page

In the product_listing.php file I emailed you, I removed the quantity discounts table from having its own column to accommodate your requested layout so you may have to remove it from the following file:

In includes/modules/pages/index/main_template_vars.php, find and remove
'PRODUCT_LIST_QUANTITY_DISCOUNT' => PRODUCT_LIST_QUANTITY_DISCOUNT

That should do it, have fun!

19 Apr 2013, 3:08 AM
#26
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Adding Date Available with a message to items that will be sold...

thank you very much, I think we are almost there, take a look http://www.aydincoins.com/buy-silver/silver-rounds

It looks like there is '$0.00' which should not be there, the last row of the qty discount table.

Also, is there a way to move the qty 1 price into the table also so that it looks like below:

Volume Pricing:
Qty Price
1 $23.95
2-3 $22.95
4-5 $22.70
6-7 $22.45
8+ $22.20
$0.00

19 Apr 2013, 3:38 AM
#27
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

In your product_listing.php file, find:

<tr><td>' . $discount_level_1['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_1['discounted_price'], zen_get_tax_rate($products_tax_class_id)) . '</td></tr>

right above it add:

<tr><td>' . $show_qty . '</td><td>' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)) . '</td></tr>

In the same file, you can add a <br /> after the more info button to separate it from the ask button by adding by:

find:

          $lc_text = '<br /><br /><h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' . '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . '<br />' . zen_image_button(BUTTON_IMAGE_GOTO_PROD_DETAILS , BUTTON_GOTO_PROD_DETAILS_ALT) . '</a></div><div><a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a></div>';

change to:

           $lc_text = '<br /><br /><h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' . '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . '<br />' . zen_image_button(BUTTON_IMAGE_GOTO_PROD_DETAILS , BUTTON_GOTO_PROD_DETAILS_ALT) . '</a></div><br /><br /><div><a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a></div>';

For the add to cart button, in your stylesheet.css file find and change

this:
table.pl-table INPUT[type="text"] {position:absolute;margin:10px 0px 0px 0px;left:10px;}
table.pl-table input.listingBuyNowButton {position:absolute;right:0;bottom:0;}

to:
table.pl-table INPUT[type="text"] {position:absolute;margin:0px;left:10px;}
table.pl-table input.listingBuyNowButton {position:absolute;right:5px;}

19 Apr 2013, 4:19 AM
#28
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Adding Date Available with a message to items that will be sold...

Just curious why there is '$0.00' shown in the last row of Price column? http://www.aydincoins.com/buy-silver/silver-rounds, the changes below did not fix that, any idea, if I add another qty discount from the admin menu the '$0.00' disappears, see the 2nd item.

rbarbour:

In your product_listing.php file, find:

<tr><td>' . $discount_level_1['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_1['discounted_price'], zen_get_tax_rate($products_tax_class_id)) . '</td></tr> ``` > > right above it add: > ```php <tr><td>' . $show_qty . '</td><td>' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)) . '</td></tr> ``` > > In the same file, you can add a <br /> after the more info button to separate it from the ask button by adding by: > > find: > ```php $lc_text = '<br /><br /><h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' . '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . '<br />' . zen_image_button(BUTTON_IMAGE_GOTO_PROD_DETAILS , BUTTON_GOTO_PROD_DETAILS_ALT) . '</a></div><div><a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a></div>'; ``` > > change to: > ```php $lc_text = '<br /><br /><h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' . '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . '<br />' . zen_image_button(BUTTON_IMAGE_GOTO_PROD_DETAILS , BUTTON_GOTO_PROD_DETAILS_ALT) . '</a></div><br /><br /><div><a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) . '</a></div>'; ``` > > For the add to cart button, in your stylesheet.css file find and change > > this: > table.pl-table INPUT[type="text"] {position:absolute;margin:10px 0px 0px 0px;left:10px;} > table.pl-table input.listingBuyNowButton {position:absolute;right:0;bottom:0;} > > to: > table.pl-table INPUT[type="text"] {position:absolute;margin:0px;left:10px;} > table.pl-table input.listingBuyNowButton {position:absolute;right:5px;}
19 Apr 2013, 4:27 AM
#29
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

The code below was to add qty 1 price into the table.

I am trying to duplicate the same outcome on my demo site - on working on it

19 Apr 2013, 1:07 PM
#30
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Adding Date Available with a message to items that will be sold...

ok, thank you, let me know if you could duplicate or find a solution.

rbarbour:

The code below was to add qty 1 price into the table.

I am trying to duplicate the same outcome on my demo site - on working on it

19 Apr 2013, 5:07 PM
#31
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

Lets try this, we will wrap the table rows with an if statement to only show if a quantity is available

find above line code:

if ($products_discount_type != 0) {

replace the code between the above line code and the below line code

$lc_text = $lc_price . '<br />';

$lc_text .= '<table class="pl-table"><tr><td colspan="2"><strong>'.'Volume Pricing:'.'</strong></td></tr><tr><td>'.'Qty'.'</td><td>'.'Price'.'</tr><tr><td>' . $show_qty . '</td><td>' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)) . '</td></tr>';

if (zen_not_null($discount_level_1['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_1['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_1['discounted_price'], zen_get_tax_rate($products_tax_class_id)) . '</td></tr>';
}

if (zen_not_null($discount_level_2['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_2['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_2['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_3['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_3['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_3['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_4['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_4['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_4['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_5['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_5['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_5['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

find below line code:

$lc_text .= '<tr><td colspan="2">';

that should work!

19 Apr 2013, 5:28 PM
#32
coins2012 avatar

coins2012

New Zenner

Join Date:
Jan 2012
Posts:
89
Plugin Contributions:
0

Re: Adding Date Available with a message to items that will be sold...

thank you, worked perfectly, appreciate your help.

rbarbour:

Lets try this, we will wrap the table rows with an if statement to only show if a quantity is available

find above line code:

if ($products_discount_type != 0) {

> 
> replace the code between the above line code and the below line code
> ```php
$lc_text = $lc_price . '<br />';

$lc_text .= '<table class="pl-table"><tr><td colspan="2"><strong>'.'Volume Pricing:'.'</strong></td></tr><tr><td>'.'Qty'.'</td><td>'.'Price'.'</tr><tr><td>' . $show_qty . '</td><td>' . $currencies->display_price($show_price, zen_get_tax_rate($products_tax_class_id)) . '</td></tr>';

if (zen_not_null($discount_level_1['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_1['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_1['discounted_price'], zen_get_tax_rate($products_tax_class_id)) . '</td></tr>';
}

if (zen_not_null($discount_level_2['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_2['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_2['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_3['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_3['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_3['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_4['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_4['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_4['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

if (zen_not_null($discount_level_5['show_qty'])) {
$lc_text .= '<tr><td>'. $discount_level_5['show_qty'] . '</td><td>' . $currencies->display_price($discount_level_5['discounted_price'], zen_get_tax_rate($products_tax_class_id)) .'</td></tr>';
}

find below line code:

$lc_text .= '<tr><td colspan="2">';

> 
> that should work!
19 Apr 2013, 5:34 PM
#33
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Adding Date Available with a message to items that will be sold...

np, glad we got it all cleaned up and looking the way you wanted :smile: