Guest User

yw

a guest
Dec 17th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.12 KB | None | 0 0
  1. <div class = "wk_cont_ul">
  2. <div id="horizontalmenu">
  3. <ul class ="mymenu">
  4.  
  5. <li><a href="#">Listings</a>
  6. <ul>
  7. <li><a href="<?php echo Mage::getUrl('marketplace/marketplaceaccount/new/'); ?>">New Products</a></li> <li><a href="<?php echo Mage::getUrl('marketplace/marketplaceaccount/myproductslist/'); ?>">My product list</a></li> <li><a href="#">Assign product</a></li> <li><a href="#">Assign List</a></li> </ul>
  8.  
  9. </li> <li> <a href="#">Orders</a> <ul> <li><a href="#">IT/Software</a></li> <li><a href="#">Hardware</a></li> <li><a href="#">Iphone</a></li> <li><a href="#">Neuro-Science</a></li> </ul>
  10.  
  11. </li>
  12.  
  13. <li> <a href="#">Returns</a>
  14.  
  15. <ul> <li><a href="#">Cricket</a></li> <li><a href="#">Tenis</a></li> <li><a href="#">Badminton</a></li> <li><a href="#">Hockey</a></li> </ul> </li>
  16.  
  17.  
  18. </ul>
  19. </div>
  20.  
  21.  
  22. <br/><br/>
  23. </div>
  24.  
  25.  
  26.  
  27.  
  28.  
  29. <?php
  30. $isPartner= Mage::getModel('marketplace/userprofile')->isPartner();
  31. $helper= Mage::helper('marketplace');
  32. if($isPartner==1){
  33. ?>
  34. <script type="text/javascript">
  35. if (typeof jQuery == 'undefined'){
  36. document.write(unescape("%3Cscript src='//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
  37. }
  38. </script>
  39. <script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  40. <link rel="stylesheet" href="//code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  41. <div class="page-title">
  42. <h1 style="float:left;"><?php echo $helper->__('My Product List') ?></h1>
  43. </div>
  44. <div class="wk_mp_design">
  45. <div class="block block-account">
  46. <div class="block-title">
  47. <strong><span><h4><?php echo $helper->__('Product List') ?></h4></span></strong>
  48. </div>
  49. </div>
  50. <div class="fieldset wk_mp_fieldset">
  51. <div class="grid">
  52. <div class="hor-scroll">
  53. <form action="<?php echo Mage::helper('core/url')->getCurrentUrl();?>" method="post">
  54. <table cellspacing="0" class="border wk_mp_list_table">
  55. <thead>
  56. <tr id="wk_mp_tr_heading">
  57. <th><span><?php echo $helper->__('Product Name') ?></span></th>
  58. <th><span><?php echo $helper->__('Date') ?></span></th>
  59. <th><span><?php echo $helper->__('Product Status') ?></span></th>
  60. <th><span>&nbsp;</span></th>
  61. </tr>
  62. </thead>
  63. <tbody class="wk_mp_body">
  64. <tr>
  65. <td>
  66. <input type="text" class="input-text" name="s" placeholder='<?php echo $helper->__('Search by product name') ?>' value="<?php echo $this->getRequest()->getParam('s')?>"/>
  67. </td>
  68. <td>
  69. <span class="wk_mp_td_span">
  70. <?php echo $helper->__('From: ') ?>
  71. <input name="from_date" id="special_from_date" class="input-text" value="<?php echo $this->getRequest()->getParam('from_date')?>" />
  72. </span>
  73. <span class="wk_mp_td_span">
  74. <?php echo $helper->__('To: ') ?>
  75. <input name="to_date" id="special_to_date" class="input-text" value="<?php echo $this->getRequest()->getParam('to_date')?>" />
  76. </span>
  77. </td>
  78. <td>
  79. <select name="prostatus" class="input-text">
  80. <option value=""><?php echo $helper->__('All') ?></option>
  81. <option value="1" <?php if($this->getRequest()->getParam('prostatus') == 1) echo 'selected="selected"'?>>
  82. <?php echo $helper->__('Approved') ?>
  83. </option>
  84. <option value="2" <?php if($this->getRequest()->getParam('prostatus') == 2) echo 'selected="selected"'?>>
  85. <?php echo $helper->__('Unapproved') ?>
  86. </option>
  87. </select>
  88. </td>
  89. <td>
  90. <button class="button" title="Save" type="submit">
  91. <span><span><span><?php echo $helper->__('Submit') ?></span></span></span>
  92. </button>
  93. </td>
  94. </tr>
  95. </tbody>
  96. </table>
  97. </form>
  98. <?php
  99. if(count($this->getCollection())==0){ ?>
  100. <div class="fieldset wk_mp_fieldset">
  101. <div class="wk_emptymsg">
  102. <?php echo $helper->__('No Product Available') ?>
  103. </div>
  104. </div>
  105. <?php
  106. } else{ ?>
  107. <form action="<?php echo $this->getUrl('marketplace/marketplaceaccount/massdeletesellerpro') ?>" method="post" id="formmassdelete" name="formmassdelete">
  108. <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
  109. <button class="button" title="<?php echo $helper->__('Delete Products') ?>" type="submit" style="float: left;padding: 5px 5px 5px 0;" id="mass_delete_butn">
  110. <span><span><?php echo $helper->__('Delete Products') ?></span></span>
  111. </button>
  112. <table cellspacing="0" class="border wk_mp_list_table wk_mp_list_container_table">
  113. <thead>
  114. <tr class="wk_content">
  115. <th class="wk_check_first_td">
  116. <span>
  117. <input type="checkbox" name="mpselecctall" value="all" id="mpselecctall"/>
  118. </span>
  119. </th>
  120. <th class="wk_first_td">
  121. <span class="label name">
  122. <?php echo $helper->__('Product')?>
  123. </span>
  124. </th>
  125. <th>
  126. <span class="label">
  127. <?php echo $helper->__('sku')?>
  128. </span>
  129. </th>
  130.  
  131.  
  132. <th>
  133. <span class="label pro_status">
  134. <?php echo $helper->__('Status')?>
  135. </span>
  136. </th>
  137.  
  138.  
  139. <th>
  140. <span class="label">
  141. <?php echo $helper->__('MRP')?>
  142. </span>
  143. </th>
  144.  
  145. <th>
  146. <span class="label">
  147. <?php echo $helper->__('Special Price')?>
  148. </span>
  149. </th>
  150. <!--
  151. <th>
  152. <span class="label qty">
  153. <?php echo $helper->__('Qty. Confirmed')?>
  154. </span>
  155. </th>
  156. <th>
  157. <span class="label qty">
  158. <?php echo $helper->__('Qty. Pending')?>
  159. </span>
  160. </th>
  161. <th>
  162. <span class="label qty">
  163. <?php echo $helper->__('Qty. Sold')?>
  164. </span>
  165. </th>
  166. -->
  167. <th>
  168. <span class="label">
  169. <?php echo $helper->__('Qty')?>
  170. </span>
  171. </th>
  172.  
  173. <th>
  174. <span class="label">
  175. <?php echo $helper->__('COD')?>
  176. </span>
  177. </th>
  178.  
  179. <th>
  180. <span class="label">
  181. <?php echo $helper->__('Shipping Charges')?>
  182. </span>
  183. </th>
  184. <!--
  185. <th>
  186. <span class="label">
  187. <?php echo $helper->__('Earn Amount')?>
  188. </span>
  189. </th>
  190.  
  191. -->
  192. <th>
  193. <span class="label">
  194. <?php echo $helper->__('Save all')?>
  195. </span>
  196. </th>
  197. <th>
  198. <span class="label">
  199. <?php echo $helper->__('action')?>
  200. </span>
  201. </th>
  202.  
  203.  
  204. </tr>
  205. </thead>
  206. <tbody>
  207. <?php
  208. $i = 0;
  209. foreach($this->getCollection() as $products){
  210. $i++;
  211. $productMediaConfig = Mage::getModel('catalog/product_media_config');
  212. $salesdetail=Mage::getModel('marketplace/saleslist')->getSalesdetail($products->getEntityId());
  213. ?>
  214. <tr class="wk_row_view <?php echo $class = ($i == count($this->getCollection()))? 'wk_last_tr':''?>">
  215. <td class="wk_check_first_td">
  216. <span>
  217. <input type="checkbox" name="product_mass_delete[]" class="mpcheckbox" value="<?php echo $products->getEntityId(); ?>"/>
  218. </span>
  219. </td>
  220. <td class="wk_first_td">
  221. <input type="hidden" class="hidden_id" value="<?php echo $products->getEntityId(); ?>" />
  222. <div class="label name" title="<?php echo $products->getName(); ?>">
  223. <div class="wk_pro_divide1">
  224. <img src="<?php echo Mage::helper('catalog/image')->init($products,'thumbnail');?>" class="image" />
  225. </div>
  226. <div class="wk_pro_divide2">
  227. <div style="width:100%;">
  228. <a href="<?php echo $this->getUrl($products->getUrlPath())?>" target="blank">
  229. <?php echo $products->getName();?>
  230. </a>
  231. </div>
  232.  
  233. </div>
  234. </div>
  235. </td>
  236.  
  237. <td>
  238. <?php echo $sku = Mage::getModel('catalog/product')->load($products->getId())->getSku();?>
  239. </td>
  240. <?php
  241. if($products->getStatus()==2) { ?>
  242. <td>
  243. <span class="label pro_status">
  244. <?php echo $helper->__('Pending')?>
  245. </span>
  246. </td>
  247. <td>
  248. <span class="label qty">
  249. <?php echo $helper->__('Pending')?>
  250. </span>
  251. </td>
  252. <td>
  253. <span class="label qty">
  254. <?php echo $helper->__('Pending')?>
  255. </span>
  256. </td>
  257. <td>
  258. <span class="label qty">
  259. <?php echo $helper->__('Pending')?>
  260. </span>
  261. </td>
  262. <td>
  263. <span class="label qty">
  264. <?php echo $helper->__('Pending')?>
  265. </span>
  266. </td>
  267. <?php }
  268. else{
  269. $id=$products->getId();
  270. $productsolddetail=Mage::getModel('marketplace/saleslist')->getProductSalesDetailById($id);
  271. $qtycom=0;
  272. $com=0;
  273. foreach($productsolddetail as $key){
  274. $qtycom+=$key['magequantity'];
  275. $com+=$key['actualparterprocost'];
  276. } ?>
  277.  
  278.  
  279. <td>
  280. <span class="label pro_status">
  281. <?php echo $helper->__('Approved')?>
  282. </span>
  283. </td>
  284.  
  285.  
  286.  
  287.  
  288.  
  289. <!-- price satti -->
  290. <td>
  291.  
  292.  
  293.  
  294. <?php //echo $products->getPrice(); ?>
  295. <input class="ama1" type = "text" id = "price_<?php echo $products->getId(); ?>" onkeydown="validateNumbers(event)" "name = "price" value = "<?php echo $products->getPrice(); ?>" style = ""/>
  296.  
  297.  
  298.  
  299.  
  300. <p id="updatedprice_<?php echo $products->getId(); ?>" style = "display:none;color:red; position:relative; top:16px;">Updated</p>
  301. <br/>
  302.  
  303. <button id="price_update_button_<?php echo $products->getId(); ?>" class="update" onclick="updateFieldPrice('<?php echo $products->getId(); ?>'); return false;" >
  304. <span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
  305. </button>
  306.  
  307.  
  308. <button id="price_reset_button_<?php echo $products->getId(); ?>" type="reset" class="cancel" onclick="hideResetPrice('<?php echo $products->getId(); ?>','<?php echo $products->getPrice(); ?>'); return false;">
  309. <span><span><?php echo $helper->__('Cancel') ?></span></span>
  310. </button>
  311.  
  312. </span>
  313.  
  314.  
  315.  
  316. </td>
  317.  
  318.  
  319. <!-- price satti end -->
  320.  
  321. <!-- SP start -->
  322.  
  323. <td>
  324.  
  325. <span class="label pro_status">
  326. <?php //echo $products->getPrice(); ?>
  327.  
  328.  
  329. <input class="ama1" type = "text" id = "specialprice_<?php echo $products->getId(); ?>" onkeydown="validateNumbers(event)" "name = "price" value = "<?php echo $products->getSpecialPrice(); ?>" onblur="updateFieldSpecialPrice('<?php echo $products->getId(); ?>')" style = ""/>
  330.  
  331. <p id="updatedspecialprice_<?php echo $products->getId(); ?>" style = "display:none;color:red; position:relative; top:16px;">Updated</p>
  332. <br/>
  333.  
  334.  
  335. <button id="specialprice_update_button_<?php echo $products->getId(); ?>" class="update" onclick="updateFieldSpecialPrice('<?php echo $products->getId(); ?>'); return false;" >
  336. <span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
  337. </button>
  338. <button id="specialprice_reset_button_<?php echo $products->getId(); ?>" type="reset" class="cancel" onclick="hideResetSpecialPrice('<?php echo $products->getId(); ?>'); return false;" >
  339. <span><span><?php echo $helper->__('Cancel') ?></span></span>
  340. </button>
  341. </span>
  342.  
  343. </td>
  344. <!-- SP end-->
  345.  
  346.  
  347. <!-- qty start -->
  348. <td>
  349. <?php
  350. $selllermpassignproduct=Mage::getModel('mpassignproduct/mpassignproduct')->getAssignProDetails($products->getId());
  351. //Zend_Debug::dump($selllermpassignproduct,null,true);
  352. $stock_item=Mage::getModel('cataloginventory/stock_item')->loadByProduct($products);
  353.  
  354. $SellerQty=isset($selllermpassignproduct['sellerqty'])?$selllermpassignproduct['sellerqty']:$stock_item->getQty();
  355. $assignqty=isset($selllermpassignproduct['assignqty'])?$selllermpassignproduct['assignqty']:0;
  356. ?>
  357.  
  358. <span id="valueqty_<?php echo $products->getId(); ?>"><?php echo (int) $SellerQty; ?></span>
  359. <input type = "text" id = "qty_<?php echo $products->getId(); ?>" onkeydown="validateNumbers(event)" "name = "stock" value = "<?php echo (int) $SellerQty; ?>" style = "display:none"/>
  360.  
  361.  
  362.  
  363. <span class="label wk_action" id="edit_link_<?php echo $products->getId(); ?>">
  364. <img onclick="showField('<?php echo $products->getId(); ?>'); return false;" src="<?php echo $this->getSkinUrl('marketplace/images/icon-edit.png'); ?>"/>
  365. </span>
  366. <p id="updatedqty_<?php echo $products->getId(); ?>" style = "display:none;color:red;">Updated</p>
  367. <br/>
  368. <button id="update_button_<?php echo $products->getId(); ?>" class="button wk_mp_btn1" onclick="updateField('<?php echo $products->getId(); ?>',<?php echo $assignqty;?>); return false;" style="display:none" >
  369. <span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
  370. </button>
  371.  
  372. <button id="reset_button_<?php echo $products->getId(); ?>" type="reset" class="cancel" onclick="hideReset('<?php echo $products->getId(); ?>'); return false;" style="display:none" >
  373. <span><span><?php echo $helper->__('Cancel') ?></span></span>
  374. </button>
  375.  
  376.  
  377.  
  378.  
  379. <!-- edit qty end 2 -->
  380.  
  381.  
  382. <!-- COD start -->
  383.  
  384. <td>
  385.  
  386.  
  387. <?php
  388.  
  389. $attribute = $products->getResource()->getAttribute('cod_available');
  390. if ($attribute) {
  391. echo $attribute_value = $attribute ->getFrontend()->getValue($products);
  392. }
  393. ?>
  394. </td>
  395.  
  396.  
  397.  
  398.  
  399.  
  400. <!-- COD end -->
  401.  
  402.  
  403. <!-- shipping charges -->
  404.  
  405. <td>
  406.  
  407.  
  408. <?php
  409. $attribute = $products->getResource()->getAttribute('local');
  410. if ($attribute) {
  411. echo $attribute_value = $attribute ->getFrontend()->getValue($products);
  412. }
  413. ?>
  414.  
  415. <span class="label wk_action" id="edit_link_<?php echo $products->getId(); ?>">
  416. <img onclick="showFieldLocal('<?php echo $products->getId(); ?>'); return false;" src="<?php echo $this->getSkinUrl('marketplace/images/icon-edit.png'); ?>"/>
  417. </span>
  418. <p id="updatedlocal_<?php echo $products->getId(); ?>" style = "display:none;color:red;">Updated</p>
  419. <br/>
  420. <button id="local_update_button_<?php echo $products->getId(); ?>" class="button wk_mp_btn1" onclick="updateFieldLocal('<?php echo $products->getId(); ?>'); return false;" style="display:none" >
  421. <span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
  422. </button>
  423. <button id="local_reset_button_<?php echo $products->getId(); ?>" type="reset" class="cancel" onclick="hideResetLocal('<?php echo $products->getId(); ?>'); return false;" style="display:none" >
  424. <span><span><?php echo $helper->__('Cancel') ?></span></span>
  425. </button>
  426. </span>
  427.  
  428.  
  429.  
  430. </td>
  431.  
  432. <!-- shipping charges end-->
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441. <!--
  442. <td>
  443. <span class="label qty">
  444. <?php echo $salesdetail['quantitysoldconfirmed']; ?>
  445. </span>
  446. </td>
  447. <td>
  448. <span class="label qty">
  449. <?php echo $salesdetail['quantitysoldpending']; ?>
  450. </span>
  451. </td>
  452. <td>
  453. <span class="label qty">
  454. <a href="<?php echo $this->getUrl('mpshippingmanager/shipping/salesdetail/')."id/".$products->getId(); ?>"><?php echo $salesdetail['quantitysold']; ?></a>
  455. </span>
  456. </td>
  457. -->
  458.  
  459. <!--
  460. <!--
  461. <span class="label price">
  462. <?php echo Mage::helper('core')->currency($salesdetail['amountearned'], true, false); ?>
  463. </span>
  464. </td>
  465.  
  466. -->
  467. <td>
  468. <button id="update_button_<?php echo $products->getId(); ?>" class="button wk_mp_btn1" onclick="updateAllFields('<?php echo $products->getId(); ?>'); return false;" >
  469. <span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
  470. </button>
  471. </td>
  472.  
  473.  
  474.  
  475. <?php
  476. }?>
  477. <td>
  478. <span class="label wk_action">
  479. <img src="<?php echo $this->getSkinUrl('marketplace/images/icon-edit.png'); ?>" data-type="<?php echo $products->getTypeId(); ?>" alt="<?php echo $helper->__('Edit')?>" title="<?php echo $helper->__('Edit')?>" class="mp_edit"/>
  480. <img src="<?php echo $this->getSkinUrl('marketplace/images/icon-trash.png'); ?>" alt="<?php echo $helper->__('Delete')?>" title="<?php echo $helper->__('Delete')?>" class="mp_delete"/>
  481. </span>
  482. </td>
  483. </tr>
  484. <?php
  485. }?>
  486. </tbody>
  487. </table>
  488. </form>
  489. <?php
  490. }?>
  491. </div>
  492. </div>
  493. <?php echo $this->getPagerHtml(); ?>
  494. </div>
  495. <div class="buttons-set">
  496. <p class="back-link">
  497. <a href="javascript:;" onclick="javascript: window.history.back();" class="left">&laquo; <?php echo $helper->__('Back') ?></a>
  498. </p>
  499. </div>
  500. </div>
  501.  
  502.  
  503.  
  504. <!-- edit qty start 2-->
  505.  
  506. <?php $url = Mage::getUrl('module_name/index/updateField/'); ?>
  507. <?php $url = Mage::getUrl('marketplaceaccountcontroller/index/updateField/'); ?>
  508.  
  509.  
  510. <!-- Qty and validation start -->
  511.  
  512.  
  513. <script type = "text/javascript" >
  514. function validateNumbers(e) {
  515. //var key = '#keyinput_'+ product_id;
  516. //var e = jQuery(key);
  517.  
  518. if (jQuery.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) !== -1 ||
  519. // Allow: Ctrl+A, Command+A
  520. (e.keyCode == 65 && ( e.ctrlKey === true || e.metaKey === true ) ) ||
  521. // Allow: home, end, left, right, down, up
  522. (e.keyCode >= 35 && e.keyCode <= 40)) {
  523. // let it happen, don't do anything
  524. return;
  525. }
  526. // Ensure that it is a number and stop the keypress
  527. if ((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) {
  528. e.preventDefault();
  529. }
  530. }
  531. var $wk_jq = jQuery.noConflict();
  532.  
  533. function hideReset(product_id) {
  534.  
  535. var qtyId='#qty_'+ product_id;
  536. var editLink="#edit_link_"+ product_id;
  537. var updateButton="#update_button_"+ product_id;
  538. var resetButton="#reset_button_"+ product_id;
  539.  
  540. $wk_jq(qtyId).hide();
  541. $wk_jq(editLink).show();
  542. $wk_jq(updateButton).hide();
  543. $wk_jq(resetButton).hide();
  544. }
  545.  
  546.  
  547.  
  548. function showField(product_id)
  549. {
  550.  
  551. var qtyId='#qty_'+ product_id;
  552.  
  553. var editLink="#edit_link_"+ product_id;
  554. var updateButton="#update_button_"+ product_id;
  555. var resetButton="#reset_button_"+ product_id;
  556.  
  557. $wk_jq(qtyId).show();
  558.  
  559. $wk_jq(editLink).hide();
  560. $wk_jq(updateButton).show();
  561. $wk_jq(updateButton).prop('disabled', false);//just in case
  562. $wk_jq(resetButton).show();
  563.  
  564. return false;
  565.  
  566.  
  567. }
  568.  
  569.  
  570.  
  571. function updateField(product_id,assignqty)
  572. {
  573. var qtyId = '#qty_'+ product_id;
  574. var valueId = '#valueqty_'+ product_id;
  575. var updatedqty = '#updatedqty_'+ product_id;
  576.  
  577.  
  578. var editLink = "#edit_link_"+ product_id;
  579. var updateButton = "#update_button_"+ product_id;
  580. var resetButton = "#reset_button"+ product_id;
  581. var url ='<?php echo Mage::getUrl('marketplace/marketplaceaccount/updateField/')?>';
  582.  
  583. $wk_jq(qtyId).toggle()
  584.  
  585. $wk_jq(editLink).hide();
  586. $wk_jq(updateButton).show();
  587. $wk_jq(resetButton).show();
  588.  
  589. $qty = $wk_jq(qtyId).val();
  590. jQuery(valueId).html($qty);
  591. hideReset(product_id);
  592.  
  593. var tmpQty=assignqty+ parseInt($qty) ;
  594.  
  595. new Ajax.Request(url, {
  596. method: 'post',
  597. parameters: {id: product_id, qty: tmpQty},
  598. onComplete: function (transport) {
  599. //alert(transport.responseText);
  600. jQuery(priceId).val($price);
  601. // $wk_jq(priceId).setValue($price);
  602.  
  603. jQuery(updatedqty).show().delay(2000).fadeOut();
  604.  
  605. $updateButton.prop('disabled', false);
  606.  
  607. // $wk_jq(qtyId).setValue($qty);
  608.  
  609.  
  610.  
  611. }
  612. });
  613. }
  614.  
  615. <!-- Qty and validation start end -->
  616.  
  617.  
  618. <!-- price start-->
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625. function hideResetPrice(product_id,priceold) {
  626.  
  627. var qtyId='#price_'+ product_id;
  628. var currprice='#curr_'+ product_id;
  629. var editLink="#price_edit_link_"+ product_id;
  630. var updateButton="#price_update_button_"+ product_id;
  631. var valueprice="#valueprice_"+ product_id;
  632. var resetButton="#price_reset_button_"+ product_id;
  633.  
  634.  
  635. $wk_jq(valueprice).show();
  636. $wk_jq(qtyId).val( $wk_jq(currprice).val());
  637. $wk_jq(editLink).show();
  638.  
  639. }
  640.  
  641.  
  642.  
  643. function showFieldPrice(product_id)
  644. {
  645.  
  646. var qtyId='#price_'+ product_id;
  647.  
  648. var editLink="#price_edit_link_"+ product_id;
  649. var valueprice="#valueprice_"+ product_id;
  650. var updateButton="#price_update_button_"+ product_id;
  651. var resetButton="#price_reset_button_"+ product_id;
  652.  
  653. $wk_jq(qtyId).show();
  654. $wk_jq(valueprice).hide();
  655.  
  656. $wk_jq(editLink).hide();
  657. $wk_jq(updateButton).show();
  658. $wk_jq(updateButton).prop('disabled', false);//just in case
  659. $wk_jq(resetButton).show();
  660.  
  661. return false;
  662.  
  663.  
  664. }
  665.  
  666.  
  667.  
  668. function updateFieldPrice(product_id)
  669. {
  670. var priceId = '#price_'+ product_id;
  671. var updatedqty = '#updatedprice_'+ product_id;
  672. var url ='<?php echo Mage::getUrl('marketplace/marketplaceaccount/updateFieldPrice/')?>';
  673. $price = $wk_jq(priceId).val();
  674. new Ajax.Request(url, {
  675. method: 'post',
  676. parameters: {id: product_id, price: $price},
  677. onComplete: function (transport) {
  678. //alert(transport.responseText);
  679.  
  680. jQuery(updatedqty).show().delay(2000).fadeOut();
  681.  
  682. }
  683. });
  684. }
  685.  
  686.  
  687. <!-- price end -->
  688.  
  689.  
  690. <!-- js code for SP start -->
  691. function hideResetSpecialPrice(product_id) {
  692.  
  693. var qtyId='#specialprice_'+ product_id;
  694. var editLink="#specialprice_edit_link_"+ product_id;
  695. var updateButton="#specialprice_update_button_"+ product_id;
  696. var valuespecialprice="#valuespecialprice_"+ product_id;
  697. var resetButton="#specialprice_reset_button_"+ product_id;
  698.  
  699. $wk_jq(qtyId).hide();
  700. $wk_jq(valuespecialprice).show();
  701. $wk_jq(editLink).show();
  702. $wk_jq(updateButton).hide();
  703. $wk_jq(resetButton).hide();
  704. }
  705.  
  706. function showFieldSpecialPrice(product_id)
  707. {
  708.  
  709. var qtyId='#specialprice_'+ product_id;
  710.  
  711. var editLink="#specialprice_edit_link_"+ product_id;
  712. var valueprice="#valuespecialprice_"+ product_id;
  713. var updateButton="#specialprice_update_button_"+ product_id;
  714. var resetButton="#specialprice_reset_button_"+ product_id;
  715.  
  716. $wk_jq(qtyId).show();
  717. $wk_jq(valueprice).hide();
  718.  
  719. $wk_jq(editLink).hide();
  720. $wk_jq(updateButton).show();
  721. $wk_jq(updateButton).prop('disabled', false);//just in case
  722. $wk_jq(resetButton).show();
  723.  
  724. return false;
  725.  
  726. }
  727.  
  728.  
  729.  
  730. function updateFieldSpecialPrice(product_id)
  731. {
  732. var priceId = '#specialprice_'+ product_id;
  733. var updatedqty = '#updatedspecialprice_'+ product_id;
  734. var url ='<?php echo Mage::getUrl('marketplace/marketplaceaccount/updateFieldSpecialPrice/')?>';
  735. $price = $wk_jq(priceId).val();
  736. new Ajax.Request(url, {
  737. method: 'post',
  738. parameters: {id: product_id, price: $price},
  739. onComplete: function (transport) {
  740. //alert(transport.responseText);
  741. jQuery(updatedqty).show().delay(2000).fadeOut();
  742. }
  743. });
  744. }
  745.  
  746.  
  747. <!-- js code for SP end -->
  748.  
  749.  
  750.  
  751.  
  752. function updateAllFields(product_id) {
  753. updateFieldPrice(product_id);
  754. updateFieldSpecialPrice(product_id);
  755. updateField(product_id);
  756.  
  757. }
  758. </script>
  759.  
  760.  
  761.  
  762.  
  763. <!-- webkul code start -->
  764.  
  765.  
  766. <script>
  767. var $wk_jq=jQuery.noConflict();
  768. var newCustomerProductForm1 = new VarienForm('formmassdelete', true);
  769. (function($wk_jq){
  770. $wk_jq( "#special_from_date" ).datepicker({dateFormat: "yy-mm-dd"});
  771. $wk_jq( "#special_to_date" ).datepicker({dateFormat: "yy-mm-dd"});
  772. $wk_jq('body').delegate('.mp_edit','click',function(){
  773. var id=$wk_jq(this).parents('.wk_row_view').find('.hidden_id').val();
  774. var dicision=confirm('<?php echo $helper->__(" Are you sure you want to edit this product ? ")?>');
  775. if(dicision==true){
  776. var $type_id=$wk_jq(this).attr('data-type');
  777. if($type_id=='simple')
  778. window.location = "<?php echo $this->getUrl('marketplace/marketplaceaccount/editapprovedsimple/') ?>".concat("id/",id);
  779. if($type_id=='downloadable')
  780. window.location = "<?php echo $this->getUrl('marketplace/marketplaceaccount/editapproveddownloadable/') ?>".concat("id/",id);
  781. if($type_id=='virtual')
  782. window.location = "<?php echo $this->getUrl('marketplace/marketplaceaccount/editapprovedvirtual/') ?>".concat("id/",id);
  783. if($type_id=='configurable')
  784. window.location = "<?php echo $this->getUrl('marketplace/marketplaceaccount/editapprovedconfigurable/') ?>".concat("id/",id);
  785. if($type_id=='grouped')
  786. window.location = "<?php echo $this->getUrl('mpgroupproduct/index/editapprovedgrouped/') ?>".concat("id/",id);
  787. <?php
  788. //echo $this->getChildHtml('mpgrouped_productslist');
  789. // echo $this->getChildHtml('mpbundle_productslist');
  790. ?>
  791. if($type_id=='bundle')
  792. window.location = "<?php echo $this->getUrl('mpbundleproduct/index/editbundle/') ?>".concat("id/",id);
  793. }
  794. });
  795. $wk_jq('#mass_delete_butn').click(function(e){
  796. var flag =0;
  797. $wk_jq('.mpcheckbox').each(function(){
  798. if (this.checked == true){
  799. flag =1;
  800. }
  801. });
  802. if (flag == 0){
  803. alert("<?php echo $helper->__(' No Checkbox is checked ') ?>");
  804. return false;
  805. }
  806. else{
  807. var dicisionapp=confirm('<?php echo $helper->__(" Are you sure you want to delete these product ? ")?>');
  808. if(dicisionapp==true){
  809. $wk_jq('#form-customer-product-new').submit();
  810. }else{
  811. return false;
  812. }
  813. }
  814. });
  815.  
  816. $wk_jq('#mpselecctall').click(function(event) {
  817. if(this.checked) {
  818. $wk_jq('.mpcheckbox').each(function() {
  819. this.checked = true;
  820. });
  821. }else{
  822. $wk_jq('.mpcheckbox').each(function() {
  823. this.checked = false;
  824. });
  825. }
  826. });
  827.  
  828. $wk_jq('.mp_delete').click(function(){
  829. var id=$wk_jq(this).parents('.wk_row_view').find('.hidden_id').val();
  830. var dicisionapp=confirm('<?php echo $helper->__(" Are you sure you want to delete this product ? ")?>');
  831. if(dicisionapp==true)
  832. window.location = "<?php echo $this->getUrl('marketplace/marketplaceaccount/delete/') ?>".concat("id/",id);
  833. });
  834. })($wk_jq);
  835. </script>
  836.  
  837.  
  838. <script>
  839. var $wk_jq=jQuery.noConflict();
  840. var i=2;
  841. function showOtherImage(){
  842. var newdiv = document.createElement('div');
  843. newdiv.setAttribute("id","childDiv"+i);
  844. newdiv.innerHTML = "<input type='file' name='images"+i+"' accept='image/\*' class='wk_imagevalidate'/><input type='radio' onClick='defaultimagevalue(this)' value='' class='defaultimage' name='defaultimage'><span class='defaultimageset'>Base image</span><a href=\"javascript:;\" onclick=\"removeEvent('childDiv"+i+"')\"><?php echo $helper->__('Remove ') ?></a>";
  845. var ni = document.getElementById('otherimages');
  846. ni.appendChild(newdiv);
  847. i++;
  848. }
  849. function removeEvent(divNum){
  850. var d = document.getElementById('otherimages');
  851. var olddiv = document.getElementById(divNum);
  852. d.removeChild(olddiv);
  853. i--;
  854. }
  855. function defaultimagevalue(object){
  856. var strs=$wk_jq(object).prev('input').val().split('\\');
  857. $wk_jq(object).val(strs[strs.length-1]);
  858. }
  859. (function($wk_jq){
  860. var newCustomerProductForm = new VarienForm('form-customer-product-editPost', true);
  861. $wk_jq( "#special_from_date" ).datepicker({'dateFormat':'yy:mm:dd'});
  862. $wk_jq( "#special_to_date" ).datepicker({'dateFormat':'yy:mm:dd'});
  863.  
  864. $wk_jq('.wk_close').click(function(){
  865. $wk_jq(this).parent().remove();
  866. });
  867.  
  868. $wk_jq('#save_butn').click(function(e){
  869. if(newCustomerProductForm.validator.validate()!=false){
  870. var descrip = nicEditors.findEditor( "description" ).getContent();
  871. var sdescrip = nicEditors.findEditor( "short_description" ).getContent();
  872. //var regex = /(&lt([^>]+)&gt)/ig;
  873. var regex = /<script(.+?)<\/script>/g;
  874. var result = descrip .replace(regex, "");
  875. result = result.replace(/script/g,'');
  876. nicEditors.findEditor( "description" ).setContent(result);
  877.  
  878. var sresult = sdescrip .replace(regex, "");
  879. sresult = sresult.replace(/script/g,'');
  880. nicEditors.findEditor( "short_description" ).setContent(sresult);
  881.  
  882. $wk_jq('#description').text(result);
  883. $wk_jq('#short_description').text(sresult);
  884.  
  885. $wk_jq('#save_butn span span').text('<?php echo $helper->__(" Saving..")?>');
  886. $wk_jq('.button').css('opacity','0.7');
  887. $wk_jq('.button').css('cursor','default');
  888. $wk_jq('.button').attr('disabled','disabled');
  889. $wk_jq('#form-customer-product-editPost').submit();
  890. }
  891. });
  892.  
  893. $wk_jq('.input-text').change(function(){
  894. var validt = $wk_jq(this).val();
  895. var regex = /(<([^>]+)>)/ig;
  896. var mainvald = validt .replace(regex, "");
  897. $wk_jq(this).val(mainvald);
  898. });
  899.  
  900. $wk_jq(".dumimg").change(function(){
  901. $wk_jq( ".defaultimage" ).prop( "checked", false );
  902. });
  903. $wk_jq('input#sku').change(function(){
  904. var len=$wk_jq('input#sku').val();
  905. var len2=len.length;
  906. if(len2==0){
  907. alert('<?php echo $helper->__(" SKU can\'t be left empty ")?>');
  908. $wk_jq('div#skuavail').css('display','none');
  909. $wk_jq('div#skunotavail').css('display','none');
  910. }
  911. else{
  912. $wk_jq.ajax({
  913. url: "<?php echo Mage::getUrl('marketplace/marketplaceaccount/verifysku',array('_secure'=>true));?>",
  914. type: "POST",
  915. data: {sku:$wk_jq('input#sku').val()},
  916. dataType: 'html',
  917. success:function($data){
  918. $data=JSON.parse($data);
  919. if($data.avl==1){
  920. $wk_jq('div#skuavail').css('display','block');
  921. $wk_jq('div#skunotavail').css('display','none');
  922. }
  923. else{
  924. $wk_jq('div#skunotavail').css('display','block');
  925. $wk_jq('div#skuavail').css('display','none');
  926. $wk_jq("input#sku").attr('value','');
  927. }
  928. }
  929. });
  930. }
  931. });
  932.  
  933. $wk_jq("body").delegate('.wk_imagevalidate',"change",function(){
  934. var ext = $wk_jq(this).val().split('.').pop().toLowerCase();
  935. if($wk_jq.inArray(ext, ['gif','png','jpg','jpeg']) == -1) {
  936. $wk_jq(this).val('');
  937. alert('<?php echo $helper->__(" invalid extension! Please Upload an image ")?>');
  938. }
  939. });
  940.  
  941. $wk_jq("#wk_bodymain").delegate('.wk_plus ,.wk_plusend,.wk_minus, .wk_minusend ',"click",function(){
  942. var thisthis=$wk_jq(this);
  943. if(thisthis.hasClass("wk_plus") || thisthis.hasClass("wk_plusend")){
  944. if(thisthis.hasClass("wk_plus"))
  945. thisthis.removeClass('wk_plus').addClass('wk_plus_click');
  946. if(thisthis.hasClass("wk_plusend"))
  947. thisthis.removeClass('wk_plusend').addClass('wk_plusend_click');
  948. thisthis.prepend("<span class='wk_node_loader'></span>");
  949.  
  950. $wk_jq.ajax({
  951. url : "<?php echo $this->getUrl('marketplace/marketplaceaccount/categorytree/',array('_secure'=>true));?>",
  952. type : "POST",
  953. data : {CID:thisthis.siblings("input").val(),
  954. ML:thisthis.parent(".wk_cat_container").css("margin-left").replace("px",""),
  955. CATS : "<?php echo implode(',',$categories); ?>"},
  956. dataType: "html",
  957. success : function(content){
  958. var newdata= $wk_jq.parseJSON(content);
  959. len= newdata.length;
  960. var pxl= parseInt(thisthis.parent(".wk_cat_container").css("margin-left").replace("px",""))+20;
  961. thisthis.find(".wk_node_loader").remove();
  962. if(thisthis.attr("class") == "wk_plus")
  963. thisthis.attr("class","wk_minus");
  964. if(thisthis.attr("class") == "wk_plusend")
  965. thisthis.attr("class","wk_minusend");
  966. if(thisthis.attr("class") == "wk_plus_click")
  967. thisthis.attr("class","wk_minus");
  968. if(thisthis.attr("class") == "wk_plusend_click")
  969. thisthis.attr("class","wk_minusend");
  970. for(i=0;i<len; i++){
  971. id=newdata[i].id;
  972. checkn=newdata[i].check;
  973. nam=newdata[i].name;
  974. if(checkn==1){
  975. if(newdata[i].counting ==0){
  976. thisthis.parent(".wk_cat_container").after('<div class="wk_removable wk_cat_container" style="display:none;margin-left:'+pxl+'px;"><span class="wk_no"></span><span class="wk_foldersign"></span><span class="wk_elements wk_cat_name">'+ nam +'</span><input class="wk_elements" type="checkbox" checked name="category[]" value='+ id+' </div>');
  977. }else{
  978. thisthis.parent(".wk_cat_container").after('<div class="wk_removable wk_cat_container" style="display:none;margin-left:'+pxl+'px;"><span class="wk_plusend"></span><span class="wk_foldersign"></span><span class="wk_elements wk_cat_name">'+ nam +'</span><input class="wk_elements" type="checkbox" checked name="category[]" value='+ id +'></div>');
  979. }
  980. }else{
  981. if(newdata[i].counting ==0){
  982. thisthis.parent(".wk_cat_container").after('<div class="wk_removable wk_cat_container" style="display:none;margin-left:'+pxl+'px;"><span class="wk_no"></span><span class="wk_foldersign"></span><span class="wk_elements wk_cat_name">'+ nam +'</span><input class="wk_elements" type="checkbox" name="category[]" value='+ id+'></div>');
  983. }else{
  984. thisthis.parent(".wk_cat_container").after('<div class="wk_removable wk_cat_container" style="display:none;margin-left:'+pxl+'px;"><span class="wk_plusend"></span><span class="wk_foldersign"></span><span class="wk_elements wk_cat_name">'+ nam +'</span><input class="wk_elements" type="checkbox" name="category[]" value='+ id +'></div>');
  985. }
  986. }
  987. }
  988. thisthis.parent(".wk_cat_container").nextAll().slideDown(300);
  989. }
  990. });
  991. }
  992. if(thisthis.hasClass("wk_minus") || thisthis.hasClass("wk_minusend")){
  993. if(thisthis.attr("class") == "wk_minus")
  994. thisthis.attr("class","wk_plus");
  995. if(thisthis.attr("class") == "wk_minusend")
  996. thisthis.attr("class","wk_plusend");
  997. var thiscategory = thisthis.parent(".wk_cat_container");
  998. var marg= parseInt(thiscategory.css("margin-left").replace("px",""));
  999. while(thiscategory.next().hasClass("wk_removable")){
  1000.  
  1001. if(parseInt(thiscategory.next().css("margin-left").replace("px",""))>marg)
  1002. thiscategory.next().slideUp("slow",function(){$wk_jq(this).remove();});
  1003. thiscategory = thiscategory.next();
  1004. if(typeof thiscategory.next().css("margin-left")!= "undefined"){
  1005. if( marg==thiscategory.next().css("margin-left").replace("px",""))
  1006. {
  1007. break;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. });
  1013.  
  1014. $wk_jq("body").delegate('.nicEdit-main',"blur",function(){
  1015. var x = $wk_jq(this).text()
  1016. $wk_jq(this).parent().parent().children('textarea').text(x);
  1017. });
  1018.  
  1019. $wk_jq('.image_set span').click(function(event){
  1020. var dicisionapp=confirm('<?php echo $helper->__(" Are you sure you want to delete this image ? ")?>');
  1021. if(dicisionapp==true){
  1022. var deleteflag=0;
  1023. var thisthis = $wk_jq(this);
  1024. var imag = thisthis.prev('img').attr('id');
  1025. thisthis.html("<img src='<?php echo $this->getSkinUrl('marketplace/images/loading.gif'); ?>'/>");
  1026. thisthis.removeClass('wk_imagedelete');
  1027. thisthis.addClass('wk_imagedeleteload');
  1028. $wk_jq.ajax({
  1029. url: "<?php echo $this->getUrl('marketplace/marketplaceaccount/deleteimage',array('_secure'=>true));?>",
  1030. type: "POST",
  1031. data: {file:thisthis.prev('img').attr('id'),pid:thisthis.prev('img').attr('pid')},
  1032. dataType: 'html',
  1033. success:function(content){
  1034. thisthis.parent('div.setimage').remove();
  1035. }
  1036. });
  1037. }
  1038. });
  1039. $wk_jq('.wk_imagedelete img').mouseover(function(event){
  1040. $wk_jq(event.target).css('width','22px');
  1041. });
  1042. $wk_jq('.wk_imagedelete img').mouseout(function(event){
  1043. $wk_jq(event.target).css('width','20px');
  1044. });
  1045. })($wk_jq);
  1046. </script>
  1047.  
  1048. <!-- local -->
  1049.  
  1050.  
  1051. <script>
  1052.  
  1053.  
  1054. function hideResetLocal(product_id) {
  1055.  
  1056. var qtyId='#local_'+ product_id;
  1057. var editLink="#local_edit_link_"+ product_id;
  1058. var updateButton="#local_update_button_"+ product_id;
  1059. var resetButton="#local_reset_button_"+ product_id;
  1060.  
  1061. $wk_jq(qtyId).hide();
  1062. $wk_jq(editLink).show();
  1063. $wk_jq(updateButton).hide();
  1064. $wk_jq(resetButton).hide();
  1065. }
  1066.  
  1067.  
  1068. function showFieldLocal(product_id)
  1069. {
  1070.  
  1071. var qtyId='#local_'+ product_id;
  1072.  
  1073. var editLink="#local_edit_link_"+ product_id;
  1074. var updateButton="#local_update_button_"+ product_id;
  1075. var resetButton="#local_reset_button_"+ product_id;
  1076.  
  1077. $wk_jq(qtyId).show();
  1078.  
  1079. $wk_jq(editLink).hide();
  1080. $wk_jq(updateButton).show();
  1081. $wk_jq(updateButton).prop('disabled', false);//just in case
  1082. $wk_jq(resetButton).show();
  1083.  
  1084. return false;
  1085.  
  1086.  
  1087. }
  1088.  
  1089.  
  1090. function updateFieldLocal(product_id)
  1091. {
  1092. var priceId = '#local_'+ product_id;
  1093. var valueId = '#valuelocal_'+ product_id;
  1094. var updatedqty = '#updatedlocal_'+ product_id;
  1095.  
  1096.  
  1097. var editLink = "#local_edit_link_"+ product_id;
  1098. var updateButton = "#local_update_button_"+ product_id;
  1099. var resetButton = "#local_reset_button_"+ product_id;
  1100. var url ='<?php echo Mage::getUrl('marketplace/marketplaceaccount/updateFieldPrice/')?>';
  1101.  
  1102. $wk_jq(priceId).toggle()
  1103.  
  1104. $wk_jq(editLink).hide();
  1105. $wk_jq(updateButton).hide();
  1106. $wk_jq(resetButton).hide();
  1107.  
  1108. $price = $wk_jq(priceId).val();
  1109. jQuery(valueId).html($price);
  1110. hideReset(product_id);
  1111.  
  1112. new Ajax.Request(url, {
  1113. method: 'post',
  1114. parameters: {id: product_id, price: $price},
  1115. onComplete: function (transport) {
  1116. //alert(transport.responseText);
  1117.  
  1118.  
  1119.  
  1120. jQuery(updatedqty).show().delay(2000).fadeOut();
  1121.  
  1122. $updateButton.prop('disabled', false);
  1123.  
  1124. // $wk_jq(priceId).setValue($price);
  1125.  
  1126.  
  1127. jQuery(priceId).val($price);
  1128. // $wk_jq(priceId).setValue($price);
  1129.  
  1130.  
  1131.  
  1132. }
  1133. });
  1134. }
  1135.  
  1136.  
  1137. </script>
  1138.  
  1139.  
  1140. <!-- local end -->
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150. <?php
  1151. }else{
  1152. echo "<h2 class='wk_new_msg'>".$helper->__("To BECOME SELLER PLEASE CONTACT TO ADMIN.")."</h2>";
  1153. }?>
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159. <!--
  1160.  
  1161. <style>
  1162.  
  1163. .wk_mp_btn1 {background: #3fbdf7 none repeat scroll 0 0;color: #fff;}
  1164. .social-icons {
  1165. display:none !important; // this will work for you..
  1166. }
  1167. #main_header {
  1168. position: relative !important; // fixing logo
  1169.  
  1170. }
  1171.  
  1172. #horizontalmenu .mymenu > li {
  1173. height: 32px;
  1174. line-height: 32px;
  1175. width: 100px;
  1176. }
  1177. #main_header .header-container .header {
  1178. background-color: #027CD5;
  1179. }
  1180. #horizontalmenu{
  1181. margin-top: -5px; // background color for logo and menu
  1182. }
  1183.  
  1184. .header_search
  1185. { display:none !important; // searh bar remove
  1186.  
  1187. }
  1188.  
  1189. .wk_cont_ul_one
  1190.  
  1191.  
  1192. {
  1193.  
  1194. position:relative;
  1195. left:640px;
  1196. bottom:69px;
  1197. display: inline-block;
  1198. font-size:13px;
  1199. list-style-type: none;
  1200. }
  1201.  
  1202. ul.wk_cont_ul_one li
  1203.  
  1204. { display: inline-block;}
  1205.  
  1206.  
  1207. ul.wk_cont_ul_one li { display: inline-block;}
  1208.  
  1209.  
  1210.  
  1211.  
  1212. .widget.widget-static-block { display:none !important }
  1213.  
  1214. ul.wk_cont_ul li {
  1215. display: inline-block;
  1216.  
  1217.  
  1218. .wk_cont_ul
  1219. {
  1220. position:relative;
  1221. bottom:50px;
  1222. }
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228. </style>
  1229.  
  1230.  
  1231. <style type="text/css" media="screen"> #horizontalmenu ul { padding:1; margin:1; list-style:none; } #horizontalmenu li { float:left; position:relative; padding-right:100; display:block; border:0px solid #CC55FF; border-style:inset; } #horizontalmenu li ul { display:none; position:absolute; } #horizontalmenu li:hover ul{ display:block; background:white; height:auto; width:8em; } #horizontalmenu li ul li{ clear:both; border-style:none;} </style>
  1232.  
  1233.  
  1234.  
  1235. <style>
  1236.  
  1237. .mymenu {
  1238.  
  1239. font-size:17px;
  1240. color : white;
  1241. }
  1242.  
  1243. .wk_cont_ul
  1244. {
  1245. position:relative;
  1246. bottom:50px;
  1247.  
  1248. }
  1249.  
  1250.  
  1251.  
  1252. .mymenu li { margin-right:10px; }
  1253. .mymenu li a{ text-decoration: none;padding: 5px; }
  1254. .mymenu li a:link{ text-decoration: none; }
  1255. .mymenu li a:hover{ text-decoration: none;background:#ffff00; }
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261. </style>
  1262.  
  1263. -->
  1264.  
  1265. <style>
  1266.  
  1267. .div_link-cart { display:none !important; /* remove cart button */ }
  1268. .header_search { display:none !important; }
  1269. .inner_menu { display:none !important }
  1270.  
  1271.  
  1272.  
  1273.  
  1274. .welcome-msg { display:none !important }
  1275. .social-icons { display:none !important }
  1276.  
  1277. .grid_6.pull_18.col-left.sidebar > div:last-child {
  1278. display: none; /* remove complete my acccount section */
  1279. }
  1280. .breadcrumbs { display:none !important /* remove home > My account */ }
  1281.  
  1282. .block-title { display:none !important /* remove markeplace text */ }
  1283.  
  1284. ul.wk_cont_ul li {
  1285. display: inline-block;
  1286.  
  1287. }
  1288.  
  1289.  
  1290. .wk_cont_ul {
  1291. background: #027CD5;
  1292.  
  1293.  
  1294. }
  1295.  
  1296.  
  1297. .wk_cont_ul_one
  1298.  
  1299.  
  1300. {
  1301.  
  1302. position:relative;
  1303. left:640px;
  1304. bottom:69px;
  1305. display: inline-block;
  1306. font-size:13px;
  1307. list-style-type: none;
  1308. }
  1309.  
  1310.  
  1311. ul.wk_cont_ul_one li
  1312.  
  1313. { display: inline-block;}
  1314.  
  1315.  
  1316. ul.wk_cont_ul_one li { display: inline-block;}
  1317.  
  1318.  
  1319.  
  1320.  
  1321. .widget.widget-static-block { display:none !important }
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329. </style>
  1330.  
  1331.  
  1332.  
  1333. <style type="text/css" media="screen"> #horizontalmenu ul { padding:1; margin:1; list-style:none; } #horizontalmenu li { float:left; position:relative; padding-right:100; display:block; border:0px solid #CC55FF; border-style:inset; } #horizontalmenu li ul { display:none; position:absolute; } #horizontalmenu li:hover ul{ display:block; background:white; height:auto; width:8em; } #horizontalmenu li ul li{ clear:both; border-style:none;} </style>
  1334.  
  1335.  
  1336. <style>
  1337.  
  1338. .mymenu {
  1339.  
  1340. font-size:17px;
  1341. color : white;
  1342. }
  1343.  
  1344. .wk_cont_ul
  1345. {
  1346. position:relative;
  1347. bottom:50px;
  1348.  
  1349. }
  1350.  
  1351. #main_header { position: relative !important; }
  1352.  
  1353. .mymenu li { margin-right:10px; }
  1354. .mymenu li a{ text-decoration: none;padding: 5px; }
  1355. .mymenu li a:link{ text-decoration: none; }
  1356. .mymenu li a:hover{ text-decoration: none;background:#ffff00; }
  1357.  
  1358. #horizontalmenu .mymenu > li {
  1359. height: 32px;
  1360. line-height: 32px;
  1361. width: 100px;
  1362. }
  1363. #main_header .header-container .header {
  1364. background-color: #027CD5;
  1365.  
  1366. }
  1367. #horizontalmenu{
  1368. margin-top: -5px;
  1369. }
  1370.  
  1371.  
  1372.  
  1373. </style>
  1374.  
  1375. <!-- as amazon -->
  1376. <style>
  1377.  
  1378. .ama1
  1379. {
  1380. width: 80px; border-radius: 5px; border: 1px solid #C0C0C0; padding: 10px; position : relative; top: 10px;"
  1381. }
  1382. .wk_mp_list_table {
  1383.  
  1384. position:relative;
  1385. right:160px;
  1386. width:130%;
  1387. }
  1388.  
  1389.  
  1390. #main_header .header-container .header { width:100%}
  1391.  
  1392. .update { position:relative; top:18px;}
  1393. .cancel { position:relative; top:18px;}
  1394. </style>
Add Comment
Please, Sign In to add comment