Guest User

view

a guest
Apr 12th, 2016
56
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if(Mage::registry('current_product')->getType()!='configure')
  2. { ?>
  3. if (!productPriceIsKnown && typeof spConfig != "undefined") {
  4. priceFromLabel = spConfig.config.priceFromLabel;
  5. }
  6.  
  7. <?php } ?>
  8.  
  9. <?php
  10.  
  11. ?>
  12. <?php $_helper = $this->helper('catalog/output'); ?>
  13. <?php $pageLayout = str_replace(array('page/','.phtml'),'',Mage::app()->getLayout()->getBlock('root')->getTemplate()); ?>
  14. <?php $_product = $this->getProduct(); ?>
  15. <?php $setting = Mage::helper('em0113settings'); ?>
  16.  
  17. <script type="text/javascript">
  18. var optionsPrice = new Product.OptionsPrice(<?php echo $this->getJsonConfig() ?>);
  19. </script>
  20. <div class="Individual">
  21. <div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
  22. <div class="product-view">
  23. <div class="product-essential">
  24. <form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
  25. <?php echo $this->getBlockHtml('formkey') ?>
  26. <input type="hidden" name="return_url" id="return_url" value="" />
  27. <div class="no-display">
  28. <input type="hidden" name="product" value="<?php echo $_product->getId() ?>" />
  29. <input type="hidden" name="related_product" id="related-products-field" value="" />
  30. </div>
  31.  
  32. <div class="product-img-box" style="width:<?php echo $setting->getImageProduct_BaseImageWidth(390) ?>px;">
  33. <?php echo $this->getChildHtml('media') ?>
  34. </div>
  35. <?php
  36. $related_product_collection = $_product->getRelatedProductCollection();
  37. $related_product_collection->AddStoreFilter();
  38. $count = count($related_product_collection);
  39. ?>
  40. <div class="product-shop <?php if($count > 0 && $pageLayout=='1column'): ?>has-related<?php else: ?>no-related<?php endif ?>">
  41. <div class="product-shop-wrapper <?php if($_product->isGrouped()): ?>grouped<?php endif ?>">
  42. <?php list($_prev_prod, $_next_prod) = Mage::helper('em0113settings/product')->getPreviousNextProducts($this->getProduct()); ?>
  43.  
  44. <!--<?php if($_prev_prod != NULL): ?>
  45. <a href="<?php echo $_prev_prod->getProductUrl(); ?>" title="<?php echo $this->__('Previous') ?>" class="prev"><?php echo $this->__('Previous') ?></a>
  46. <?php endif; ?>
  47.  
  48. <?php if($_next_prod != NULL): ?>
  49. <a href="<?php echo $_next_prod->getProductUrl(); ?>" title="<?php echo $this->__('Next') ?>" class="next"><?php echo $this->__('Next') ?></a>
  50. <?php endif; ?>-->
  51.  
  52. <div class="product-name">
  53. <h2><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></h2>
  54. </div>
  55.  
  56. <?php echo $this->getReviewsSummaryHtml($_product, false, true)?>
  57.  
  58. <!--<?php if ($this->canEmailToFriend()): ?>
  59. <p class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend') ?></a></p>
  60. <?php endif; ?>-->
  61.  
  62.  
  63. <div class="desc-options">
  64. <div class="Pro_des">
  65. <?php if ($_product->getShortDescription()):?>
  66. <div class="short-description">
  67. <hr>
  68. <br/>
  69. <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?>
  70. </div>
  71. </div>
  72. <?php endif;?>
  73. </div>
  74.  
  75. <?php if ($_product->isSaleable() && $this->hasOptions()):?>
  76. <?php echo $this->getChildChildHtml('container2', '', true, true) ?>
  77. <?php endif;?>
  78.  
  79. </div>
  80.  
  81. <!--
  82.  
  83. <?php if ($this->displayProductStockStatus()): ?>
  84. <?php if($_product->isSaleable()): ?>
  85. <p class="availability in-of-stock"><span><?php echo $this->__('In of stock') ?></span></p>
  86. <?php else : ?>
  87. <p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
  88. <?php endif; ?>
  89. <?php endif; ?>
  90.  
  91. -->
  92.  
  93. <!--
  94.  
  95. <hr class="hr">
  96.  
  97. -->
  98.  
  99. <div class="check_delivery">
  100. <!-- next bits check delivery -->
  101.  
  102. <?php
  103. // echo $this->getLayout()->createBlock('core/template')->setTemplate('checkdelivery/checkdelivery.phtml')->toHtml();
  104. // echo $this->getLayout()->createBlock('checkout/cart_shipping')->setTemplate('checkout/cart/shipping1.phtml')->tohtml();
  105. // echo $this->getLayout()->createBlock('checkout/cart_shipping')->setTemplate('checkout/cart/shipping1.phtml')->toHtml();
  106. // echo $this->getLayout()->getBlock('root')->getTemplate();
  107.  
  108. ?>
  109. <!-- next bits check delivery end -->
  110.  
  111. <?php
  112. // echo $this->getLayout()->createBlock('cms/block')->setBlockId('delivery')->toHtml();
  113. ?>
  114.  
  115. <?php if (($_shippingRateGroups = $this->getEstimateRates())):
  116.  
  117. if(Mage::getSingleton('core/session')->getMyShipMessage()){
  118. echo Mage::getSingleton('core/session')->getMyShipMessage();
  119. Mage::getSingleton('core/session')->unsMyShipMessage();
  120. }
  121. endif; ?>
  122. <?php echo $this->getChildHtml('shipping.estimate.form'); ?>
  123.  
  124. </div>
  125.  
  126.  
  127.  
  128. <!-- block for shipping -->
  129.  
  130. <?php
  131. // echo $this->getLayout()->createBlock('cms/block')->setBlockId('delivery')->toHtml();
  132. ?>
  133. <!-- block for shipping -->
  134.  
  135.  
  136. <div class="Quick">
  137. <div class="Quick_1">
  138. <div class="product-data">
  139. <?php echo $this->getChildHtml('alert_urls') ?>
  140. <?php echo $this->getChildHtml('product_type_data') ?>
  141. <?php echo $this->getChildHtml('extrahint') ?>
  142. <?php //echo $this->getTierPriceHtml() ?>
  143. <?php if($_product->getTypeId() == 'configurable'): ?>
  144. <?php echo $this->getChildHtml('product_options_wrapper_bottom') ?>
  145. <?php endif; ?>
  146. </div>
  147.  
  148.  
  149. <!-- shipping charges on product view page by
  150. <?php
  151. echo " Rs " . $_product->getData("mp_local_shipping_charge") . " Delivery ";
  152.  
  153. ?>
  154. <!-- shipping charges on product view pageee -->
  155.  
  156.  
  157.  
  158. <!-- 3 sshippng
  159.  
  160.  
  161.  
  162. <?php $deliveryPrice = $_product->getData("mp_local_shipping_charge") ?>
  163. <?php if($deliveryPrice === "0"): ?>
  164. <p class="sell_price" style="position: relative;"><?php echo "Selling Price (Free Delivery )"; ?> </p>
  165. <?php elseif(empty($deliveryPrice)): ?>
  166. <p class="sell_price" style="position: relative;"><?php echo "Selling Price + Rs 50 Delivery "; ?> </p>
  167. <?php else: ?>
  168. <p class="sell_price" style="position: relative;"><?php echo "Selling Price"; ?>
  169. <?php echo "+ Rs " . $_product->getData("mp_local_shipping_charge") . " Delivery "; ?>
  170. <?php endif; ?>
  171.  
  172. 3 shippping -->
  173.  
  174. <!-- ship charges on per product -->
  175.  
  176. <?php
  177. // echo "Selling Price + " . str_replace('.00','',$_excl) . " Delivery ";
  178. ?>
  179.  
  180.  
  181.  
  182. <!-- ship charges on per product -->
  183.  
  184.  
  185. <?php if (!$this->hasOptions()):?>
  186. <div class="add-to-box">
  187.  
  188. <?php if($_product->isSaleable()): ?>
  189. <?php echo $this->getChildHtml('addtocart') ?>
  190. <?php else:?>
  191. <?php echo $this->getChildHtml('addto') ?>
  192. <?php endif; ?>
  193.  
  194. <?php if ($_product->isAvailable()) {?>
  195.  
  196.  
  197. <!--
  198. <div><?php //$buttonTitle = $this->__('Add to Cart'); ?>
  199. <button type="button" title="<?php //echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php //echo $buttonTitle ?></span></span></button>
  200. </div>
  201.  
  202.  
  203.  
  204. <br/>
  205. <
  206.  
  207. <div ><button class="button buy-now" onclick="location.href ='{{config path="web/unsecure/base_url"}}/checkout/cart/add?product=1&qty=1'">
  208. <span><span>Buy Now</span></span></button>
  209. </div>
  210. -->
  211.  
  212.  
  213.  
  214. <?php }?>
  215.  
  216. </div>
  217. <?php echo $this->getChildHtml('extra_buttons') ?>
  218. <?php elseif (!$_product->isSaleable()): ?>
  219. <div class="add-to-box">
  220. <?php echo $this->getChildHtml('addto') ?>
  221. </div>
  222.  
  223.  
  224.  
  225.  
  226. <?php endif; ?>
  227. </div>
  228.  
  229. <div class="Quick_2">
  230.  
  231. <!-- Soled By -->
  232. <div class="soled_by">
  233. <?php
  234. $helper=Mage::helper('marketplace');
  235. $_product=Mage::registry('current_product');
  236. $productowner=Mage::getModel('marketplace/product')->isCustomerProduct($_product['entity_id']);
  237. if($productowner['userid']!=""){
  238. $captchenable = $percent = Mage::getStoreConfig('marketplace/marketplace_options/captcha');
  239. $rowsocial=Mage::getModel('marketplace/userprofile')->getPartnerProfileById($productowner['userid']);
  240. }
  241. ?>
  242. <script type="text/javascript">
  243. if (typeof jQuery == 'undefined'){
  244. document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
  245. }
  246. </script>
  247.  
  248.  
  249.  
  250. <div class="soled-by-dealer">
  251. <!--<div class="block-title"><strong><span>
  252. <?php if($rowsocial['shoptitle']!='')
  253. echo $rowsocial['shoptitle'];
  254. else
  255. echo $rowsocial['profileurl']; ?>
  256. </span></strong>
  257. </div>-->
  258.  
  259. <h5> SOLD BY : </h5>
  260.  
  261. <span>
  262.  
  263.  
  264. <?php if($rowsocial['profileurl'] == "kidsdial2")
  265. {?>
  266.  
  267. <a href="<?php echo Mage::getUrl('marketplace/seller/collection').$rowsocial['profileurl'] ?>" title="<?php echo "Totaltoys"; ?>" id="siteconnect">
  268. <?php echo "Totaltoys"; ?></a><?php
  269.  
  270. }
  271.  
  272. else{?>
  273.  
  274. <a href="<?php echo Mage::getUrl('marketplace/seller/collection').$rowsocial['profileurl'] ?>" title="<?php echo $rowsocial['profileurl']; ?>" id="siteconnect">
  275. <?php echo $rowsocial['profileurl']; ?></a><?php
  276. }
  277.  
  278. ?>
  279. </span>
  280.  
  281.  
  282. </div>
  283. <br/>
  284. <div class="delivery_details">
  285.  
  286.  
  287. <div class="COD">
  288. <?php $attribute = $_product->getResource()->getAttribute('cod_available');
  289. $attribute_value = $attribute ->getFrontend()->getValue($_product);
  290.  
  291. if ($attribute_value == "Yes"){ ?>
  292. <h5> CASH ON DELIVERY </h5>
  293. <div class="Delivery_hover_details">?<p class="killing"><?php echo "Available";?></p></div>
  294. <?php }else{ ?>
  295. <i class="fa fa-times"></i>
  296. <p>
  297. <h5 style="position:relative;bottom: 11px;">CASH ON DELIVERY </h5>
  298. <p class="reduce"><?php echo " Not Available"; ?></p>
  299. </p>
  300. <?php } ?>
  301. <span class="coupontooltip">
  302. <div class="cod_content">
  303. <h5>How do I place a Cash on Delivery (COD) order?</h5>
  304. <p>All items that have the "Cash on Delivery Available" icon are valid for order by Cash on Delivery.</p>
  305. <p>Add the item(s) to your cart and proceed to checkout.When prompted to choose a payment option, select "Cash on Delivery". </p>
  306. <p>Once you place the order you will receive confirmation call from our customer support for validation with in 48 hours. Once verified and confirmed, your order will be processed for shipment in the time specified, from the date of confirmation. You will be required to make a cash-only payment to our courier partner at the time of delivery of your order to complete the payment.</p>
  307. <p>Terms & Conditions</p>
  308. <p>The maximum order value for COD is ₹5000.</p>
  309. <p>e-Gift Vouchers or Store Credit cannot be used for COD orders.</p>
  310. <p>Cash-only payment at the time of delivery.</p>
  311. </div>
  312. </span>
  313.  
  314. </div>
  315.  
  316.  
  317. <div class= "bottom3">
  318.  
  319. <!-- wholesale available -->
  320.  
  321. <?php
  322. //$product is your current product
  323. if($_product->getTierPrice()) {
  324. echo "
  325. <div class = 'quickphp'>
  326. <h5>Wholesale</h5>
  327. Available.<br>
  328. Usually Delivered in 10-15 business days.
  329. </div>
  330. ";
  331. }
  332. else{
  333. echo "
  334. <div class = 'quickphp'>
  335. <h5>Wholesale</h5>
  336. Not Available.<br>
  337. </div>
  338. ";
  339.  
  340. }
  341. ?>
  342.  
  343.  
  344. <div class="avail">
  345. <?php if ($this->displayProductStockStatus()): ?>
  346. <?php if($_product->isSaleable()): ?>
  347. <p class="availability in-of-stock"> <h5>Availability</h5> <?php echo $this->__('In Stock') ?></span></p>
  348. <?php else : ?>
  349. <p class="availability out-of-stock"> <h5>Availability</h5> <?php echo $this->__('Out of stock') ?></span></p>
  350. <?php endif; ?>
  351. <?php endif; ?>
  352. </div>
  353.  
  354.  
  355.  
  356.  
  357.  
  358. <div class="replace">
  359.  
  360. <span> <b>7 days</b> Replacement Guarantee</span>
  361. <div class="Delivery_hover_details">?
  362. <span class="coupontooltip">
  363.  
  364. <h5> How do I return an item purchased on Totaltoys.com</h5>
  365. <p>Conveniently, you can call us at 092-434-22233 and email us at contact@totaltoys.com with order number, invoice number and product name. If you've received an item in a 'Damaged', 'Defective' or 'Not as Described' state.</p>
  366.  
  367. <h5>Return & Replacement policy:</h5>
  368. <p>Returns or replacement request should be placed within 7 days from the date of delivery.</p>
  369. <p>As we receive your request, our concerned team will contact you to validate the compliant. The validation process may require submitting of product photos. Once the validation process is completed then further action will be taken.
  370. Once the product reaches to us/seller, the replacement will be proceed in 1-2 working days after physical inspection of the goods and shipment will be done simultaneously.</p>
  371. <p>If you've received an item in a 'Damaged', 'Defective' or 'Not as Described' state, all replacements/pickups will be done free of cost.</p>
  372. <p>If the packaging is tampered with or damaged, before accepting delivery of the goods, please refuse to take delivery of the package, and call us on 092-434-22233 or mail us at contact@totaltoys.com , mentioning your order reference number. We shall make our best efforts to ensure that a replacement delivery is made to you at the earliest.</p>
  373. <p>In the rare circumstances where a pickup cannot be done, you can ship the product through any courier. You will be reimbursed the shipping charges against the original receipt.</p>
  374. <p>Replacement is subjected to availability of stock. In case a replacement is not available, the amount will be refunded to your account from which the purchase was made. (Amount includes shipping and gift wrapping charges)</p>
  375.  
  376. <h5> Return Request is not Accepted If:</h5>
  377.  
  378. <li>Return request is made outside the specified time period</li>
  379.  
  380. <li>Missing of tags, labels, original packing, and invoice.</li>
  381.  
  382. <li>Misused or Mishandle of the product from customer end.</li>
  383.  
  384. <p>For all refunds we will refund the amount to same mode of payment as used during checkout. Refunds for cash on delivery will be made via online transfer of funds to the customers bank account.</p>
  385. <p>If the customer chooses to cancel the order before the product is shipped, he will be entitled to a 100% refund.
  386. Do I have to return the free gift when I return a product?</p>
  387.  
  388. <p>Yes. The free gift is included as part of the item order and needs to be returned along with the originally delivered product</p>
  389.  
  390. <p>Please contact us on contact@totaltoys.com or call us at 092-434-22233 for any doubts and concerns</p>
  391.  
  392.  
  393.  
  394. </span>
  395. </div>
  396.  
  397.  
  398. </div>
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405. </div>
  406.  
  407. </div>
  408.  
  409.  
  410.  
  411.  
  412.  
  413. <div class="Delivery">
  414. <h5> Delivered By </h5>
  415. <div class="Delivery_hover_details">?
  416. <span class="coupontooltip">
  417. <div class="delivery_content">
  418. <h5>What is the estimated delivery time?</h5>
  419. <p>Sellers generally procure and ship the items within the time specified on the product page. Business days exclude public holidays and Sundays.</p>
  420. <p>Estimated delivery time depends on the following factors:
  421. <li>Time of the order, usually orders made after 2:00pm can be shipped only on next workingday</li>
  422. <li>The Seller offering the product</li>
  423. <li>Product's availability with the Seller</li>
  424. <li>The destination to which you want the order shipped to and the Seller's location</li></p>
  425. </div>
  426. </span>
  427. </div>
  428. <ul class="fk-ul-disc">
  429. <li>Usually Delivered in 3-5 business days.</li>
  430.  
  431.  
  432.  
  433. </ul>
  434. </div>
  435.  
  436.  
  437.  
  438. </div>
  439.  
  440. </div>
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449. <!--<?php if (!$this->hasOptions()):?>
  450. <div class="add-to-box">
  451.  
  452. <?php if($_product->isSaleable()): ?>
  453. <?php echo $this->getChildHtml('addtocart') ?>
  454. <?php else:?>
  455. <?php echo $this->getChildHtml('addto') ?>
  456. <?php endif; ?>
  457. </div>
  458. <?php echo $this->getChildHtml('extra_buttons') ?>
  459. <?php elseif (!$_product->isSaleable()): ?>
  460. <div class="add-to-box">
  461. <?php echo $this->getChildHtml('addto') ?>
  462. <button type=”button” title=”Buy Now” class=”button btn-cart” onclick=”setcheckoutLocation(‘<?php echo $this->getAddToCartUrl($_product) ?>’)”><span><span>Buy Now</span></span></button>
  463. <?php echo $this->getChildHtml(”, true, true) ?>
  464. </div>
  465.  
  466.  
  467.  
  468.  
  469. <?php endif; ?>-->
  470.  
  471.  
  472. <?php echo $this->getChildHtml('other');?>
  473. <?php echo $this->getChildHtml('short_des_after'); ?>
  474.  
  475.  
  476. <?php if ($_product->isSaleable() && $this->hasOptions()):?>
  477. <?php echo $this->getChildChildHtml('container1', '', true, true) ?>
  478. <?php endif;?>
  479. <?php echo $this->getChildHtml('shippingreturns') ?>
  480.  
  481. </div>
  482. </div>
  483.  
  484.  
  485. <!--<span class="or_buy_now"> -- OR --</span>-->
  486.  
  487.  
  488.  
  489. <!--<button type="button" title="<?php echo $buttonTitle ?>" id="product-addtocart-button" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>-->
  490. <!--<a href="<?= $this->getAddtoCartUrl($_product, array('qty' => $_price['price_qty'])) ?>"> Buy Now </a>-->
  491.  
  492. <div class="clearer"></div>
  493.  
  494. </form>
  495. </div>
  496. <!-- Add button share facebook -->
  497. <?php if ($setting->getImageProduct_ViewSocial()): ?>
  498. <div id="social-share" class="hide-lte0 hide-lte1 hide-lte2"></div>
  499. <script type="text/javascript">
  500. jQuery(document).ready(function($){
  501. jQuery('#social-share').dcSocialShare({
  502. buttons: 'facebook,plusone,twitter,pinterest',
  503. twitterId: 'designchemical',
  504. email: 'moc//niamod/liame',
  505. align: 'right',
  506. floater: false
  507. });
  508. });
  509. </script>
  510. <?php endif; ?>
  511. <script type="text/javascript">
  512. //<![CDATA[
  513. var productAddToCartForm = new VarienForm('product_addtocart_form');
  514. productAddToCartForm.submit = function(button, url) {
  515. if (this.validator.validate()) {
  516. var form = this.form;
  517. var oldUrl = form.action;
  518.  
  519. if (url) {
  520. form.action = url;
  521. }
  522. var e = null;
  523. try {
  524. this.form.submit();
  525. } catch (e) {
  526. }
  527. this.form.action = oldUrl;
  528. if (e) {
  529. throw e;
  530. }
  531.  
  532. if (button && button != 'undefined') {
  533. button.disabled = true;
  534. }
  535. }
  536. }.bind(productAddToCartForm);
  537.  
  538. productAddToCartForm.submitLight = function(button, url){
  539. if(this.validator) {
  540. var nv = Validation.methods;
  541. delete Validation.methods['required-entry'];
  542. delete Validation.methods['validate-one-required'];
  543. delete Validation.methods['validate-one-required-by-name'];
  544. // Remove custom datetime validators
  545. for (var methodName in Validation.methods) {
  546. if (methodName.match(/^validate-datetime-.*/i)) {
  547. delete Validation.methods[methodName];
  548. }
  549. }
  550.  
  551. if (this.validator.validate()) {
  552. if (url) {
  553. this.form.action = url;
  554. }
  555. this.form.submit();
  556. }
  557. Object.extend(Validation.methods, nv);
  558. }
  559. }.bind(productAddToCartForm);
  560. //]]>
  561. </script>
  562. </div>
  563.  
  564.  
  565.  
  566. <div class="product-collateral">
  567. <?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
  568. <div class="box-collateral <?php echo "box-{$alias}"?>">
  569. <?php if ($title = $this->getChildData($alias, 'title')):?>
  570. <h2><?php echo $this->escapeHtml($title); ?></h2>
  571. <?php endif;?>
  572. <?php echo $html; ?>
  573. </div>
  574. <?php endforeach;?>
  575. <?php echo $this->getChildHtml('product_additional_data') ?>
  576. <?php echo $this->getChildHtml('product_additional_collateral') ?>
  577. </div>
  578.  
  579. <?php echo $this->getChildHtml('catalog.product.related'); ?>
  580. <?php echo $this->getChildHtml('review_list') ?>
  581. <?php echo $this->getChildHtml('upsell_products') ?>
  582. <?php if (Mage::helper('em0113settings')->getImageProduct_UseTabs()): ?>
  583. <script type="text/javascript">
  584. //<![CDATA[
  585. jQuery(window).ready(function() {
  586. setTimeout(function() {
  587. timeout = null;
  588. EM.tools.decorateProductCollateralTabs();
  589. }, 200);
  590. });
  591. //]]>
  592. </script>
  593.  
  594.  
  595. <?php endif ?>
  596. </div>
  597.  
  598.  
  599.  
  600.  
  601.  
  602. <!--
  603. <div class="set">
  604. <?php $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
  605. $product=Mage::getModel('catalog/product')->load($_product->getId());
  606. $attributeSetModel->load($product->getAttributeSetId());
  607. $attributeSetName = $attributeSetModel->getAttributeSetName();
  608. if($attributeSetName=='Mobile'){ echo $this->__('color may vary as shown in above image'); } ?>
  609. </div>
  610.  
  611. -->
  612.  
  613.  
  614.  
  615. <style>
  616.  
  617. .reduce {
  618. clear: both;
  619. float: left;
  620. bottom: 13px;
  621. border-radius: 2px;
  622. color: #666;
  623. display: inline-block;
  624. font-size: 11px;
  625. height: 0px;
  626. line-height: 6px;
  627. position: relative;
  628. text-align: center;
  629. text-decoration: none;
  630. }
  631.  
  632.  
  633. .product-view .short-description { width: 50%; float:left; }
  634. dl dt {
  635. font-weight: bold;
  636. display: block;
  637. margin: 0 0 .5em;
  638. }
  639.  
  640. .product-options dd {
  641. margin: 4px 0;
  642. display: inline-block;
  643. }
  644.  
  645.  
  646.  
  647. </style>
  648.  
  649.  
  650. <script>
  651.  
  652.  
  653. function setcheckoutLocation(location)
  654. {
  655. jQuery.ajax({
  656. type:”GET”,
  657. url:location,
  658. success:function(data){
  659. window.location.href = “http://vikas.collagekingapp.com/checkout/cart/”;
  660. }
  661. });
  662.  
  663. }
  664.  
  665. productAddToCartForm.submit = function(button, url) {
  666. if (('undefined' != typeof productAddToCartFormOld) && productAddToCartFormOld) {
  667. if (Catalog.Map.active) {
  668. Catalog.Map.hideHelp();
  669. }
  670. if (productAddToCartForm.qty && $('qty')) {
  671. $('qty').value = productAddToCartForm.qty;
  672. }
  673. parentResult = productAddToCartFormOld.submit();
  674. return false;
  675. }
  676.  
  677.  
  678.  
  679. </script>
  680.  
  681.  
  682.  
  683. <script type="text/javascript">
  684. /*
  685.  
  686. jQuery(function($) {
  687. function getPriceFromString(str){
  688. return str.replace( /^\D+/g, '')
  689. }
  690.  
  691. productPriceFormated = jQuery('#product_addtocart_form span.price').text();
  692. productPrice = getPriceFromString(productPriceFormated);
  693. lowestPrice = productPrice;
  694. productId = 0;
  695. soldBy = ''
  696.  
  697.  
  698. jQuery('#seller-list-new form').each(function(index){
  699. price = getPriceFromString(jQuery(this).find('span span.price').text());
  700.  
  701. if(price < lowestPrice){
  702. lowestPrice = price;
  703. productId = jQuery(this).find('.mpassignproduct_id').val()
  704. soldBy = jQuery(this).find('div.wk_seller_profile').html()
  705. }
  706.  
  707. });
  708.  
  709. if(productId > 0){
  710. jQuery('#product_addtocart_form span.price').text(productPriceFormated.replace(productPrice, lowestPrice));
  711. jQuery('input:hidden[name=product]').remove();
  712. jQuery('#product_addtocart_form').prepend('<input type="hidden" value="' + productId + '" name="mpassignproduct_id" class="mpassignproduct_id">');
  713. jQuery('#product_addtocart_form .soled-by-dealer span').html(soldBy)
  714. }
  715. });
  716.  
  717. */
  718.  
  719. </script>
RAW Paste Data