Jump to content



Latest News: (loading..)

- - - - -

Product Info Page Box


  • Please log in to reply
73 replies to this topic

#61   peterguk

peterguk
  • Members
  • 17 posts
  • Real Name:Peter G.
  • Gender:Male

Posted 12 April 2013 - 09:46 AM

@newburns

Thank you for your reply.

OK, i've had a play.  At my site, no item will add to basket, regardless of whether there are attributes.

At your site, any item will add to basket, including those without attributrs.  E.g.:

http://mtrosemedia.tk/store/product_info.php/the-answer-prayer-p-90?

I tried for 2 hours last night, but can see nothing wrong with the code in the add on product_info page.

Can you paste up or message me your product_info.php page so i can compare?

Thanks.

#62   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 21 April 2013 - 05:14 AM

http://oxytarm-ap.com/shop/catalog/product_info.php?products_id=30

Look at my buttons, so out of place. can Echo or newburns send me your product_info.php so that I can compare and configure.

Basically, what i need is to configure these boxes and buttons properly so that it doesnt cover my picture. even the heading "black bar" is too extending and into my product picture!

Please help! thanks thanks

#63   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 21 April 2013 - 05:33 AM

View PostComesticage, on 21 April 2013 - 05:14 AM, said:

http://oxytarm-ap.com/shop/catalog/product_info.php?products_id=30

Look at my buttons, so out of place. can Echo or newburns send me your product_info.php so that I can compare and configure.

Basically, what i need is to configure these boxes and buttons properly so that it doesnt cover my picture. even the heading "black bar" is too extending and into my product picture!

Please help! thanks thanks

I have minimal programming background

I manage to adjust it.Solution i did is

/* START Product Info Page Box */
.productinfobox {
   width: 40%;

For the "stylesheet.css" i keep changing the percentage.

#64   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 21 April 2013 - 05:41 AM

Hi, my website is www.oxytarm-ap.com OScommerce 2.3.1

My next question, is

http://www.echo-guns.com/product_info.php/echo-guns/lower-receiver/stripped-lower-receiver/0001-p-664

How do i get something like echo-guns?

I am interested in getting 4 more lines (essentially 2 features like the link above)

Eg.

1)
Quantity desired drop down menu at the add to cart area.

2)
MSRP:

Price:
You Save:
$199.95
$199.95
$0.00(0%)

#65   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 01 May 2013 - 11:17 AM

hello,

anyone knows the above question i asked? been waiting quite some time

#66   newburns

newburns
  • Members
  • 88 posts
  • Real Name:Ray Burns
  • Gender:Male
  • Location:Texas

Posted 01 May 2013 - 12:17 PM

@peterguk
Have you made any changes to shopping_cart.php?

@Comesticage
I Copied this from the source code on his page. What is really interesting to me is that he has a special message displayed at the bottom of the infobox based on who the manufacturer is. Nice.  http://www.echo-guns.com/product_info.php/spikes-tactical/replacement-parts/charging-handle-gunfighter-medium-latch/suh10g4-p-516

I would say compare it to your own, and see what the differences are. Make a backup of your own, and try to implement some of the differences to see if they work.

<!-- // START Product Info Page Box -->
<div class="productinfobox">
<div class="ui-widget infoBoxContainer">
  <div class="ui-widget-header infoBoxHeading">
   <span itemprop="name">Charging Handle - BCM Gunfighter w/ Mod 4 Medium Latch</span>
		</div>
  <div class="ui-widget-content infoBoxContents" style='overflow:hidden; padding:5px'>
	 
		  <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
		   <div style='width: 50%; float: left; line-height: 1'>
				 <font size="+1">MSRP:</font><br />
		   <font size="+2">Price:</font><br />
					<font size="+1">You Save:</font>		  </div>
		  <div style='width: 50%; float: right; line-height: 1'>
		   <font color="#FF0000" size="+1"><del>$0.00</del></font><br /><span itemprop="price"><font color="green" size="+2"><strong>$43.95</strong></font></span><br /><font color="#FF0000" size="+1">$-43.95(0%)</font>		  </div>
		 </div>
		 <div>
		  <div style='width: 50%; float: left;'>
	 Model:		  </div>
		  <div style='width: 50%; float: right;'>
				 [SUH10G4]		  </div>
		 </div>
				 <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td>
		 <div>
		  <div style='width: 50%; float: left;'>
				 Stock Level:		  </div>
		  <div style='width: 50%; float: right;'>
				  <strong><font color=green>We have</font> 2 <font color=green>In Stock!</font></strong>		  </div>
		 </div>
				</td></tr></table>
		 <div>
		  <div style='width: 50%; float: left;'>
				 Manufacturer:<br /><br />		  </div>
		  <div style='width: 50%; float: right;'>
				 Spikes Tactical<br /><a href="http://www.echo-guns.com/index.php/spikes-tactical-m-16"><em>Other products</em></a><br />		  </div>
		 </div>
  </div>
		<div class="ui-widget-content infoBoxContents" style='overflow:hidden; padding:5px'>
   <form name="cart_quantity" action="http://www.echo-guns.com/product_info.php/spikes-tactical/replacement-parts/charging-handle-gunfighter-medium-latch/suh10g4-p-516?action=add_product" method="post"><!-- Attributes Start -->
			 

<!-- Attributes End -->
			<div class="buttonSet">
			 <span class="buttonActionProductInfoCart">Quantity Desired
	 <input type="hidden" name="products_id" value="516" /><input type="text" name="add_quantity" value="1" size="4" /><span class="tdbLink"><button id="tdb2" type="submit">Add to Cart</button></span><script type="text/javascript">$("#tdb2").button({icons:{primary:"ui-icon-cart"}}).addClass("ui-priority-primary").parent().removeClass("tdbLink");</script></form>
		  </span>
			</div>
			<div class="buttonSet">
			 <span class="buttonAction">
			  <div class="buttonSetActionLeft">
					 <a href="http://www.echo-guns.com/ask_a_question_popup.php" target="_blank" onclick="$('#askaquestion').dialog('open'); return false;"><span class="tdbLink"><button id="tdb3" type="submit">Ask a Question</button></span><script type="text/javascript">$("#tdb3").button({icons:{primary:"ui-icon-help"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script></a>			 </div>
				</span>
			<div class="buttonSetActionLeft">
<a href="http://www.echo-guns.com/product_reviews_popup.php" target="_blank" onclick="$('#reviews').dialog('open'); return false;"><span class="tdbLink"><button id="tdb4" type="submit">Reviews</button></span><script type="text/javascript">$("#tdb4").button({icons:{primary:"ui-icon-comment"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script></a>
	</div>
			 <div align="center">
<form name="email_friend" action="http://www.echo-guns.com/tell_a_friend.php?action=process&products_id=516" method="post"><input type="hidden" name="formid" value="ddae2a01be4c7513a05dcfde98ebc7e8" /><a href="http://www.echo-guns.com/tell_a_friend_popup.php" target="_blank" onclick="$('#tellafriend').dialog('open'); return false;"><span class="tdbLink"><button id="tdb5" type="submit">Tell a Friend</button></span><script type="text/javascript">$("#tdb5").button({icons:{primary:"ui-icon-mail-closed"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script></a>		  </div>
   </div>
<table>
<tr>
<td class="main">For more information, please visit this products <a href="http://www.echo-guns.com/redirect.php?action=url&goto=http%3A%2F%2Fwww.spikestactical.com%2Fnew%2Fz%2Fcharging-handle-bcm-gunfighter-w-mod-4-medium-latch-p-419.html" target="_blank"><u>webpage</u></a>.</td>
</tr>
<tr>
<td><img src="images/pixel_trans.gif" alt="" width="100%" height="1" /></td>
</tr>
<tr>
<td class="main"><p>
Spikes Tactical is experiencing severe backorders. Please see <strong><a href="http://www.spikestactical.com/ourcustomers2.jpg"><span style="color:#ff0000;">this link</span></a></strong> for more information. Please use the &#39;Ask a Question&#39; button above to see if the current item is in stock before ordering.</p></td>
</tr>
</table>
  </div>
</div>
</div><!-- Product Info Box -->
<br />


#67   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 02 May 2013 - 05:26 PM

@newburns

Thanks. Let me try. hope that it is just a single change to the products_info.php file then can control in admin space.

Btw, the manufacturer website can be inserted using the original product info box add on by echo. u can turn it on or off in the admin panel.

#68   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 03 May 2013 - 10:38 AM

@newburns and @echo

I added the changes to product_info.php.

Got the below - but all the products have the same price and savings - so is pretty much useless. i believe what echo did is that the add on was a "admin-based" one. ie. he can easily altered the MSRP, Price and You save for all products individually in the OScommerce admin panel.

I also manage to added successfully the Qty desired drop down menu but no matter what qty i enter to the box, it does not make any difference to the qty in the cart. i can input 100 but when i press add to cart, only 1 piece can added.


MSRP:
Price:
You Save:
$40.50
$39.95
$0.55(1%)

#69   EchoGuns

EchoGuns

    Supreme Overlord

  • Members
  • 122 posts
  • Real Name:Clint Freeman
  • Gender:Male
  • Location:Texas

Posted 03 May 2013 - 01:31 PM

@Comesticage@newburns

Been a while since I've had to do any edits to my files so I'm a bit rusty :P

Firstly, its a lot more involved than just changing formatting on the product_info.php page. Here is an excerpt from the part that displays what yal are talking about:
   	 <div class="ui-widget-content infoBoxContents" style='overflow:hidden; padding:5px'>
   	  
			 <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
		  		  <div style='width: 50%; float: left; line-height: 1'>
					<?php echo '<font size="+1">MSRP:</font>'; ?><br />
   				 <?php echo '<font size="+2">' . TEXT_PRICE . '</font>'; ?><br />
					<?php echo '<font size="+1">You Save:</font>'; ?>
				</div>
   			 <div style='width: 50%; float: right; line-height: 1'>
   				 <?php
						$product_savings_over_msrp = $product_info['products_msrp'] - $product_info['products_price'];
						$product_savings_over_msrp_percernt = number_format($product_savings_over_msrp / $product_info['products_msrp'] * '100');
						echo '<font color="#FF0000" size="+1"><del>' . $products_msrp . '</del></font><br />';
						echo '<span itemprop="price"><font color="green" size="+2"><strong>' . $products_price . '</strong></font></span><br />';
						echo '<font color="#FF0000" size="+1">' . $products_msrp_savings . '(';
						echo $product_savings_over_msrp_percernt;
						echo '%)' . '</font>';
					?>
   			 </div>
   		 </div>
   		 <div>
   			 <div style='width: 50%; float: left;'>
					<?php
						if (PRODUCT_INFO_PAGE_BOX_PRODUCT_MODEL == 'True') {
							echo TEXT_MODEL;
						}
					?>
   			 </div>
				<div style='width: 50%; float: right;'>
   				 <?php
						if (PRODUCT_INFO_PAGE_BOX_PRODUCT_MODEL == 'True') {
							echo '[' . $product_info['products_model'] . ']';
						}
					?>
   			 </div>
   		 </div>
   				 <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td>
   		 <div>
   			 <div style='width: 50%; float: left;'>
   				 <?php if (PRODUCT_INFO_PAGE_BOX_PRODUCT_STOCK == 'True') {
						echo TEXT_STOCK_LEVEL;
						
							$productstocklevel = tep_get_products_stock($product_info['products_id']);
							if ($productstocklevel <= '0') {
								$productstocklevelrnd = '';
							}
							if ($productstocklevel > '0') {
								$productstocklevelrnd = '<font color=green>We have</font> ' . $productstocklevel;
							}
//							if ($productstocklevel <= '0') {
//								echo '<br /><br />';
//							}
						}
					?>
   			 </div>
   			 <div style='width: 50%; float: right;'>
   				 <?php if (PRODUCT_INFO_PAGE_BOX_PRODUCT_STOCK == 'True') {
							if ($productstocklevel >= '1') {
								$productstocklevelmsg =  '<font color=green>In Stock!</font>';
							}
							if ($productstocklevel <= '0') {
								//$productstocklevelmsgno =  '<font color=red>Currently out of stock</font><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '"></strong><b><i><u>Click here to notify me when item is back in stock.</u></i></b><strong></a>';
												$productstocklevelmsgno = '<font color=red>Currently out of stock</font><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . tep_draw_button('Notify Me When In Stock', 'notice') . '</a>';
								
								
								
							}
							echo ' <strong>' . $productstocklevelrnd . ' ' .$productstocklevelmsg . $productstocklevelmsgno . '</strong>';
						}
						
					?>
   			 </div>
   		 </div>
				</td></tr></table>
   		 <div>
   			 <div style='width: 50%; float: left;'>
   				 <?php
						if (PRODUCT_INFO_PAGE_BOX_MANUFACTURER_INFO == 'True') {
							echo TEXT_MANUFACTURER . '<br /><br />';
						}
					?>
   			 </div>
   			 <div style='width: 50%; float: right;'>
   				 <?php
						if (PRODUCT_INFO_PAGE_BOX_MANUFACTURER_INFO == 'True') {
							echo $manufacturer['manufacturers_name'] . '<br />';
//							echo '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer['manufacturers_id']) . '" target="_blank"><em>';
//							echo TEXT_HOMEPAGE;
//							echo '</em></a><br />';
							echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer['manufacturers_id']) . '">';
							echo '<em>' . MODULE_BOXES_MANUFACTURER_INFO_BOX_OTHER_PRODUCTS . '</em>';
							echo '</a><br />';
						}
					?>
   			 </div>
   		 </div>
		</div>
I've added a lot of stuff to the admin/categories.php so that when Im adding products and setting prices, it automatically sets the savings over MSRP, the percentrage, all that stuff. So that on the product_info.php just calls the necessary variables.

I've also got QTPro installed, the multiple quantity addon, a lot of custom code..... I'm not available here all the time to help out but for DIY'ers this should be a start.
My Addons:

Product Tabs - 2.3x Download| Support
Product Info Page Box - 2.3x Download | Support

#70   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted 03 May 2013 - 04:35 PM

@EchoGuns and @newburns

Thanks for the code, ya, i guess that you added alot of custom code to show that...

Can't do it even with what you have kindly provided because it is too hard for my level.

Hope to see an add-on for this.. really is nice piece of work u did.

#71   Comesticage

Comesticage
  • Members
  • 19 posts
  • Real Name:Eugene Gan

Posted Today, 09:59 AM

@EchoGuns and @newburns

With reference to the product tabs addon too,

Another interesting feature that I will like to share is to try to add

http://addons.oscommerce.com/info/8470/v,23

into a new tab..

This way, the reviews can be easily read in a tab rather than clicking the reviews button on the product info box.

Challenging. - i still can't do it. been trying for hours.

Edited by Comesticage, Today, 10:14 AM.


#72   newburns

newburns
  • Members
  • 88 posts
  • Real Name:Ray Burns
  • Gender:Male
  • Location:Texas

Posted Today, 05:11 PM

@Comesticage
It looks to already be built into the original code.
/includes/modules/product_tabs.php shows that it will display the reviews or tell a friend or Ask a Question if the option is set to true.
However, there is no option.
I will look into how to get the option available.
I believe it has to be a MySQL option that gives the value of True or False to "PRODUCT_TABS_REVIEWS_TAB"
I'm not really sure. I'm still learning PHP through the W3School tutorials. :D

Edited by newburns, Today, 05:11 PM.


#73   newburns

newburns
  • Members
  • 88 posts
  • Real Name:Ray Burns
  • Gender:Male
  • Location:Texas

Posted Today, 05:19 PM

@Comesticage
I'm guessing you can always set it manually.

define('PRODUCT_TABS_REVIEWS_TAB','True');

But I haven't learned how to create options within the admin menu.
I haven't made it that far in @burt book. Between the book and W3School, I've learned I don't know that much

#74   newburns

newburns
  • Members
  • 88 posts
  • Real Name:Ray Burns
  • Gender:Male
  • Location:Texas

Posted Today, 05:43 PM

I'm not making the connection from /admin/includes/product_tabs.php to /includes/modules/product_tabs.php.
It doesn't appear that /admin/includes/product_tabs.php does not set any MySQL values.
How does it Save the value of "products_tab_x" or what would be PRODUCT_TABS_REVIEWS_TAB?
Basically, I was just going to copy a previous line to make a new option, but ...