zara LiteCart Fan Alates Australia Liige alates zara 7 apr 2023 17:11 hello, new user here. really liking the cart so far. i have found many great answers to other configs i am looking to do in the forum already, but this one i am stuck on. i am looking to setup a basic catalogue\inventory. maybe some items will be for sale in the cart, but mostly just a list of all items for sale. i would like the customer to contact us to arrange the sale or check stock as this is the best way for my business type. what would be the most simple way? if price is 0 or XYZ then just show "contact us" or link to contact form, etc if price is set, normal cart function. this way, i dont get people trying to buy things without being able to check availably and the most updated price. then i can enable the current price or manually process the sale. thanks again
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 8 apr 2023 02:41 Hello, I would play with css. In public_html\includes\templates\default.catalog\views\box_product.inc.php localize the price-wrapper div and before it add: .USD0 {display:none} .show-contact {display:none} .yes-displayUSD0 {display:block} Then the div itself modify as follow:
zara LiteCart Fan Alates Australia Liige alates zara 8 mai 2023 07:24 thanks, is this only going to work on USD currency? could you show the sample of code how you changed it in views\box_product.inc.php thanks
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 8 mai 2023 09:45 Hello, if using another currency, change the style from USD0 to, for example, EUR0. The code is up here in my previous message. Which currency are you using?
zara LiteCart Fan Alates Australia Liige alates zara 8 mai 2023 09:50 thanks, im not sure where to put the code, just before? <div class="price-wrapper">? <style> .USD0 {display:none} .show-contact {display:none} .yes-displayUSD0 {display:block} </style> replace <?php if ($campaign_price) { ?> <del class="regular-price"><?php echo currency::format($regular_price); ?></del> <strong class="campaign-price"><?php echo currency::format($campaign_price); ?></strong> <?php } else if ($recommended_price) { ?> <del class="recommended-price"><?php echo currency::format($recommended_price); ?></del> <strong class="price"><?php echo currency::format($regular_price); ?></strong> <?php } else { ?> <span class="price"><?php echo currency::format($final_price); ?></span> <?php } ?> </div>``` with? ```<div class="price-wrapper"> <?php if ($campaign_price) { ?> <del class="regular-price"><?php echo currency::format($regular_price); ?></del> <strong class="campaign-price"><?php echo currency::format($campaign_price); ?></strong> <?php } else { ?> <span class="price <?php echo currency::format($regular_price); ?>"><?php echo currency::format($regular_price); ?></span><span class="show-contact yes-display<?php echo currency::format($regular_price); ?>"> Contact us</span> <?php } ?> </div>```
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 8 mai 2023 10:35 Oh, my version does not have recommended price, are you using this function? Anyway yes, the style before price-wrapper and then change the code. Save the actual box_product.inc.php as backup so if it does not work can upload the old file and everything will be as before.
zara LiteCart Fan Alates Australia Liige alates zara 8 mai 2023 11:49 thanks, im not sure what is wrong but its not working .USD0 {display:none} .show-contact {display:none} .yes-displayUSD0 {display:block} </style> <div class="price-wrapper"> <?php if ($campaign_price) { ?> <del class="regular-price"><?php echo currency::format($regular_price); ?></del> <strong class="campaign-price"><?php echo currency::format($campaign_price); ?></strong> <?php } else { ?> <span class="price <?php echo currency::format($regular_price); ?>"><?php echo currency::format($regular_price); ?></span><span class="show-contact yes-display<?php echo currency::format($regular_price); ?>"> Contact us</span> <?php } ?> </div>```
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 8 mai 2023 15:12 Can you attach here your file box_product.inc.php?
zara LiteCart Fan Alates Australia Liige alates zara 8 mai 2023 15:29 <div class="card"> <div class="card-body"> <div class="row" style="margin: 0;"> <div class="col-md-6"> <div class="images row"> <div class="col-xs-12"> <a class="main-image thumbnail" href="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['original']); ?>" data-toggle="lightbox" data-gallery="product"> <img class="img-responsive" src="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail']); ?>" srcset="<?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail']); ?> 1x, <?php echo document::href_rlink(FS_DIR_STORAGE . $image['thumbnail_2x']); ?> 2x" style="aspect-ratio: <?php echo $image['ratio']; ?>;" alt="" title="<?php echo functions::escape_html($name); ?>" /> <?php echo $sticker; ?> </a> </div> <?php foreach ($extra_images as $extra_image) { ?> <div class="col-xs-4"> <a class="extra-image thumbnail" href="<?php echo document::href_rlink(FS_DIR_STORAGE . $extra_image['original']); ?>" data-toggle="lightbox" data-gallery="product"> <img class="img-responsive" src="<?php echo document::href_rlink(FS_DIR_STORAGE . $extra_image['thumbnail']); ?>" srcset="<?php echo document::href_rlink(FS_DIR_STORAGE . $extra_image['thumbnail']); ?> 1x, <?php echo document::href_rlink(FS_DIR_STORAGE . $extra_image['thumbnail_2x']); ?> 2x" style="aspect-ratio: <?php echo $image['ratio']; ?>;" alt="" title="<?php echo functions::escape_html($name); ?>" /> </a> </div> <?php } ?> </div> </div> <div class="col-md-6"> <h1 class="title"><?php echo $name; ?></h1> <?php if ($short_description) { ?> <p class="short-description"> <?php echo $short_description; ?> </p> <?php } ?> <?php if (!empty($manufacturer)) { ?> <div class="manufacturer"> <a href="<?php echo functions::escape_html($manufacturer['link']); ?>"> <?php if ($manufacturer['image']) { ?> <img src="<?php echo document::href_rlink(FS_DIR_STORAGE . $manufacturer['image']['thumbnail']); ?>" srcset="<?php echo document::href_rlink(FS_DIR_STORAGE . $manufacturer['image']['thumbnail']); ?> 1x, <?php echo document::href_rlink(FS_DIR_STORAGE . $manufacturer['image']['thumbnail_2x']); ?> 2x" alt="<?php echo functions::escape_html($manufacturer['name']); ?>" title="<?php echo functions::escape_html($manufacturer['name']); ?>" /> <?php } else { ?> <h3><?php echo $manufacturer['name']; ?></h3> <?php } ?> </a> </div> <?php } ?> <?php if ($cheapest_shipping_fee !== null) { ?> <div class="cheapest-shipping" style="margin: 1em 0;"> <?php echo functions::draw_fonticon('fa-truck'); ?> <?php echo strtr(language::translate('text_cheapest_shipping_from_price', 'Cheapest shipping from <strong class="value">%price</strong>'), ['%price' => currency::format($cheapest_shipping_fee)]); ?> </div> <?php } ?> <?php if ($sku || $mpn || $gtin) { ?> <div class="codes" style="margin: 1em 0;"> <?php if ($sku) { ?> <div class="sku"> <?php echo language::translate('title_sku', 'SKU'); ?>: <span class="value"><?php echo $sku; ?></span> </div> <?php } ?> <?php if ($mpn) { ?> <div class="mpn"> <?php echo language::translate('title_mpn', 'MPN'); ?>: <span class="value"><?php echo $mpn; ?></span> </div> <?php } ?> <?php if ($gtin) { ?> <div class="gtin"> <?php echo language::translate('title_gtin', 'GTIN'); ?>: <span class="value"><?php echo $gtin; ?></span> </div> <?php } ?> </div> <?php } ?> <div class="stock-status" style="margin: 1em 0;"> <?php if ($quantity > 0) { ?> <div class="stock-available"> <?php echo language::translate('title_stock_status', 'Stock Status'); ?>: <span class="value"><?php echo $stock_status; ?></span> </div> <?php if ($delivery_status) { ?> <div class="stock-delivery"> <?php echo language::translate('title_delivery_status', 'Delivery Status'); ?>: <span class="value"><?php echo $delivery_status['name']; ?></span> <?php if (!empty($delivery_status['description'])) { ?> <div class="description"><?php echo $delivery_status['description']; ?></div> <?php } ?> </div> <?php } ?> <?php } else { ?> <?php if ($sold_out_status) { ?> <div class="<?php echo empty($sold_out_status['orderable']) ? 'stock-partly-available' : 'stock-unavailable'; ?>"> <?php echo language::translate('title_stock_status', 'Stock Status'); ?>: <span class="value"><?php echo $sold_out_status['name']; ?></span> <?php if (!empty($sold_out_status['description'])) { ?> <div class="description"><?php echo $sold_out_status['description']; ?></div> <?php } ?> </div> <?php } else { ?> <div class="stock-unavailable"> <?php echo language::translate('title_stock_status', 'Stock Status'); ?>: <span class="value"><?php echo language::translate('title_sold_out', 'Sold Out'); ?></span> <?php if (!empty($sold_out_status['description'])) { ?> <div class="description"><?php echo $sold_out_status['description']; ?></div> <?php } ?> </div> <?php } ?> <?php } ?> </div> <?php if ($recommended_price) { ?> <div class="recommended-price" style="margin: 1em 0;"> <?php echo language::translate('title_recommended_price', 'Recommended Price'); ?>: <span class="value"><?php echo currency::format($recommended_price); ?></span> </div> <?php } ?> <div class="buy_now" style="margin: 1em 0;"> <?php echo functions::form_draw_form_begin('buy_now_form', 'post'); ?> <?php echo functions::form_draw_hidden_field('product_id', $product_id); ?> <?php if ($options) { ?> <div class="options"> <?php foreach ($options as $option) { ?> <div class="form-group"> <label><?php echo $option['name']; ?></label> <?php echo $option['values']; ?> </div> <?php } ?> </div> <?php } ?> <div class="price-wrapper"> <?php if ($campaign_price) { ?> <del class="regular-price"><?php echo currency::format($regular_price); ?></del> <strong class="campaign-price"><?php echo currency::format($campaign_price); ?></strong> <?php } else if ($recommended_price) { ?> <del class="recommended-price"><?php echo currency::format($recommended_price); ?></del> <strong class="price"><?php echo currency::format($regular_price); ?></strong> <?php } else { ?> <span class="price"><?php echo currency::format($final_price); ?></span> <?php } ?> </div> <div class="tax" style="margin-bottom: 1em;"> <?php if ($tax_rates) { ?> <?php echo $including_tax ? language::translate('title_including_tax', 'Including Tax') : language::translate('title_excluding_tax', 'Excluding Tax'); ?>: <span class="total-tax"><?php echo currency::format($total_tax); ?></span> <?php } else { ?> <?php echo language::translate('title_excluding_tax', 'Excluding Tax'); ?> <?php } ?> </div> <?php if ($campaign_price_end_date) { ?> <div class="offer-expires" style="margin-bottom: 1em;"> <?php echo strtr(language::translate('text_offer_expires_on_date', 'The offer expires on %datetime.'), ['%datetime' => language::strftime(language::$selected['format_datetime'], strtotime($campaign_price_end_date))]); ?> </div> <?php } ?> <?php if (!settings::get('catalog_only_mode') && ($quantity > 0 || empty($sold_out_status) || !empty($sold_out_status['orderable']))) { ?> <div class="form-group" style="margin-bottom: 0;"> <label><?php echo language::translate('title_quantity', 'Quantity'); ?></label> <div style="display: flex"> <div class="input-group"> <?php echo (!empty($quantity_unit['decimals'])) ? functions::form_draw_decimal_field('quantity', isset($_POST['quantity']) ? true : $quantity_min, $quantity_unit['decimals'], $quantity_min, $quantity_max, 'step="'. ($quantity_step ? $quantity_step : 1) .'"') : functions::form_draw_number_field('quantity', isset($_POST['quantity']) ? true : $quantity_min, $quantity_min, $quantity_max, 'step="'. ($quantity_step ? $quantity_step : 'step="any"') .'" style="width: 100px;"'); ?> <?php echo !empty($quantity_unit['name']) ? '<div class="input-group-text">'. $quantity_unit['name'] .'</div>' : ''; ?> </div> <div style="padding-inline-start: 1em;"> <?php echo '<button class="btn btn-success" name="add_cart_product" value="true" type="submit"'. (($quantity <= 0 && !$orderable) ? ' disabled' : '') .'>'. language::translate('title_add_to_cart', 'Add To Cart') .'</button>'; ?> </div> </div> </div> <?php } ?> <div class="stock-notice"></div> <?php echo functions::form_draw_form_end(); ?> </div> <?php if ($quantity <= 0 && !empty($sold_out_status) && empty($sold_out_status['orderable'])) { ?> <div class="out-of-stock-notice"> <?php echo language::translate('description_item_is_out_of_stock', 'This item is currently out of stock and cannot be purchased.'); ?> </div> <?php } ?> <div class="social-bookmarks text-center"> <a class="link" href="#"><?php echo functions::draw_fonticon('fa-link', 'style="color: #333;"'); ?></a> <a class="twitter" href="<?php echo document::href_link('https://twitter.com/intent/tweet/', ['text' => $name .' - '. $link]); ?>" target="_blank" title="<?php echo sprintf(language::translate('text_share_on_s', 'Share on %s'), 'Twitter'); ?>"><?php echo functions::draw_fonticon('fa-twitter-square fa-lg', 'style="color: #55acee;"'); ?></a> <a class="facebook" href="<?php echo document::href_link('https://www.facebook.com/sharer.php', ['u' => $link]); ?>" target="_blank" title="<?php echo sprintf(language::translate('text_share_on_s', 'Share on %s'), 'Facebook'); ?>"><?php echo functions::draw_fonticon('fa-facebook-square fa-lg', 'style="color: #3b5998;"'); ?></a> <a class="pinterest" href="<?php echo document::href_link('https://pinterest.com/pin/create/button/', ['url' => $link]); ?>" target="_blank" title="<?php echo sprintf(language::translate('text_share_on_s', 'Share on %s'), 'Pinterest'); ?>"><?php echo functions::draw_fonticon('fa-pinterest-square fa-lg', 'style="color: #bd081c;"'); ?></a> </div> </div> </div> </div> </div> <?php if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') { ?> <div class="card"> <div class="card-body"> <div class="row"> <?php if ($description) { ?> <div class="col-md-<?php echo ($description && $technical_data) ? 6 : 12; ?>"> <h3><?php echo language::translate('title_description', 'Description'); ?></h3> <div class="description"> <?php echo $description; ?> </div> </div> <?php } ?> <?php if ($technical_data) { ?> <div class="col-md-<?php echo ($description && $technical_data) ? 6 : 12; ?>"> <h3><?php echo language::translate('title_technical_data', 'Technical Data'); ?></h3> <div class="technical-data"> <table class="table table-striped table-hover"> <?php foreach ($technical_data as $line) { if (preg_match('#[:\t]#', $line)) { list($key, $value) = preg_split('# *[:\t]+ *#', $line, 2); echo ' <tr>' . PHP_EOL . ' <td>'. trim($key) .'</td>' . PHP_EOL . ' <td>'. trim($value) .'</td>' . PHP_EOL . ' </tr>' . PHP_EOL; } else if (trim($line)) { echo ' <tr>' . PHP_EOL . ' <th colspan="2" class="text-start">'. $line .'</th>' . PHP_EOL . ' </tr>' . PHP_EOL; } else { echo '</table>' . PHP_EOL . '<table class="table table-striped table-hover">' . PHP_EOL; } } ?> </table> </div> </div> <?php } ?> </div> </div> </div> <?php } ?> </article> <script> Number.prototype.toMoney = function() { var n = this, c = <?php echo (int)currency::$selected['decimals']; ?>, d = '<?php echo language::$selected['decimal_point']; ?>', t = '<?php echo addslashes(language::$selected['thousands_sep']); ?>', p = '<?php echo currency::$selected['prefix']; ?>', x = '<?php echo currency::$selected['suffix']; ?>', s = n < 0 ? '-' : '', i = parseInt(n = Math.abs(+n || 0).toFixed(c)) + '', f = n - i, j = (j = i.length) > 3 ? j % 3 : 0; return s + p + (j ? i.substr(0, j) + t : '') + i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + (<?php echo (settings::get('auto_decimals')) ? "(c && f)" : "c"; ?> ? d + Math.abs(f).toFixed(c).slice(2) : '') + x; } $('#box-product[data-id="<?php echo $product_id; ?>"] form[name="buy_now_form"]').on('input', function(e) { var regular_price = <?php echo currency::format_raw($regular_price); ?>; var sales_price = <?php echo currency::format_raw($campaign_price ? $campaign_price : $regular_price); ?>; var tax = <?php echo currency::format_raw($total_tax); ?>; $(this).find('input[type="radio"]:checked, input[type="checkbox"]:checked').each(function(){ if ($(this).data('price-adjust')) regular_price += $(this).data('price-adjust'); if ($(this).data('price-adjust')) sales_price += $(this).data('price-adjust'); if ($(this).data('tax-adjust')) tax += $(this).data('tax-adjust'); }); $(this).find('select option:checked').each(function(){ if ($(this).data('price-adjust')) regular_price += $(this).data('price-adjust'); if ($(this).data('price-adjust')) sales_price += $(this).data('price-adjust'); if ($(this).data('tax-adjust')) tax += $(this).data('tax-adjust'); }); $(this).find('input[type!="radio"][type!="checkbox"]').each(function(){ if ($(this).val() != '') { if ($(this).data('price-adjust')) regular_price += $(this).data('price-adjust'); if ($(this).data('price-adjust')) sales_price += $(this).data('price-adjust'); if ($(this).data('tax-adjust')) tax += $(this).data('tax-adjust'); } }); $(this).find('.regular-price').text(regular_price.toMoney()); $(this).find('.campaign-price').text(sales_price.toMoney()); $(this).find('.price').text(sales_price.toMoney()); $(this).find('.total-tax').text(tax.toMoney()); }); $('#box-product form[name="buy_now_form"] .options :input').change(function(){ $.ajax({ type: 'post', url: '<?php echo document::ilink('ajax/product_options_stock.json'); ?>', data: $(this).closest('form').serialize(), dataType: 'json', cache: false, error: function(jqXHR, textStatus, errorThrown) { console.log('error', errorThrown); }, success: function(data){ if (data.status == 'ok') { $('.stock-notice').text(data.notice).removeClass('warning'); } else if (data.status == 'warning') { $('.stock-notice').text(data.notice).addClass('warning'); } else { $('.stock-notice').html(''); } } }); }); $('#box-product[data-id="<?php echo $product_id; ?>"] .social-bookmarks .link').off().click(function(e){ e.preventDefault(); prompt("<?php echo language::translate('text_link_to_this_product', 'Link to this product'); ?>", '<?php echo $link; ?>'); }); </script>```
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 9 mai 2023 01:47 Oh, I forgot, also the website so I can see if there is a different visualization of the prices as in my one worked fine.
zara LiteCart Fan Alates Australia Liige alates zara 9 mai 2023 05:55 not live atm , just a stock cart, thanks
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 9 mai 2023 06:30 I just would like to know if you visualize, for example, USD0 or $0 (in case of 0 as price). I think if you change from $0 to USD0 it will work. You can change it in admin/currency/usd/Prefix. Let me know.
zara LiteCart Fan Alates Australia Liige alates zara 15 mai 2023 05:03 thanks, i cant figure it out. i dont know why its not working.
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 15 mai 2023 05:39 Hello, I don't understand either. Are you willing to share credentials (in private message)?
zara LiteCart Fan Alates Australia Liige alates zara 16 mai 2023 03:02 this is only local testing, are there any other ways to hide zero pirce? thanks
zara LiteCart Fan Alates Australia Liige alates zara 17 juuli 2023 04:33 hello, anyone have any ideas why this may not be working? maybe some other code is overriding it?
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 17 juuli 2023 09:49 Hi, I should check it but as it is not live I cannot...
zara LiteCart Fan Alates Australia Liige alates zara 5 aug 2023 05:34 is there another way to troubleshoot this, i have tried but cannot get a result/ thanks
mmwfrank Developer Alates United States Liige alates mmwfrank 10 aug 2023 11:40 For the product page, try finding the file at public_html/includes/templates/default.catalog/views/box_product.inc.php and go to line 136: <span class="price"><?php echo currency::format($final_price); ?></span> and replace it with something like: if ($final_price == 0) { echo "Some link here..."; } else { echo currency::format($final_price); } ?></span>``` of course replace the 'some link here...' with something better. p.s. same for thumbnail page: public_html/includes/templates/default.catalog/views/listing_product.inc.php
zara LiteCart Fan Alates Australia Liige alates zara 18 aug 2023 05:42 thanks, that code did work but there are other items that need to be hidden also? Excluding Tax add to cart button quantity etc my php isnt very good, but i assume i need to move alot of the code into the if statement?
mmwfrank Developer Alates United States Liige alates mmwfrank 18 aug 2023 10:55 Actually it should be fairly easy, but not for me. When I tried my 'fix', it broke the formatting. I'll update this reply when I figure out what is going wrong, but here's what I tried that almost worked: added this new code: echo 'put custom "Contact Link" here'; }else{ ?>``` between lines: ```<?php echo $short_description; ?> </p> <?php } ?> <!-- put new snippet here --> <?php if (!empty($manufacturer)) { ?>``` which results in: ```<?php echo $short_description; ?> </p> <?php } ?> <?php if ($final_price == 0) { echo 'put custom "Contact Me Link" here'; }else{ ?> <?php if (!empty($manufacturer)) { ?>``` and one additional: ```<?php } ?>``` which I added just before the line: ```<div class="stock-notice"></div>``` which may or may not be the right spot for it.
mmwfrank Developer Alates United States Liige alates mmwfrank 19 aug 2023 01:51 Try this, just adding the <div style="display: flex"> tag seemed to fix the issue when I tried it: </p> <?php } ?> <?php if ($final_price == 0) { echo '<div style="display: flex"> put custom "Contact Me Link" here</div>'; }else{ ?> <?php if (!empty($manufacturer)) { ?>```
zara LiteCart Fan Alates Australia Liige alates zara 19 aug 2023 04:40 thanks, layout looks broken on my end do you have a screenshot of how the result looks on your end? thanks
mmwfrank Developer Alates United States Liige alates mmwfrank 19 aug 2023 09:09 Thumbnail page: [img]https://shopping-carts.info/images/ss1.jpg[/img] Zero Price Page: [img]https://shopping-carts.info/images/ss2.jpg[/img] Regular Price Page: [img]https://shopping-carts.info/images/ss3.jpg[/img] OK, zara, I see that it isn't right yet. I'm afraid it's over my head until I figure out how LiteCart (or .html??) works, someone else will have to help out with this. Sorry, I tried.
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 19 aug 2023 10:38 Hello, I don't understand why you don't simply hide only the price with "some link here..." with the code suggested by mmwfrank. As you don't want to sell it right away but you want the customer to contact you, just bring the stock to 0 (zero) and the item will not be able to be inserted in the cart. Or am I missing something?
zara LiteCart Fan Alates Australia Liige alates zara 20 aug 2023 05:52 hello, "just bring the stock to 0" could you confirm which field this is\under? will it hide the add to cart button? i also notice if i adjust quality in the front end the ZERO price mod goes away. thanks
vilaiporn LiteCart Fan Alates Thailand Liige alates vilaiporn 20 aug 2023 08:05 Hello, "just bring the stock to 0" could you confirm which field this is\under? In the back office, in the product you want to modify, under stock, then under Qty you can set the amount of the stock (attached). The add to cart button will be grayed and impossible to click. I don't understand what do you mean with the quality in the front end.
zara LiteCart Fan Alates Australia Liige alates zara 21 aug 2023 04:18 thanks, "Product is orderable" needs to be unticked in the Sold Out Status setup. "Description" wont allow html \ link the front end cart will hide the add cart buttons, but shows "This item is currently out of stock and cannot be purchased" i guess this can be edited too but. also each desired product needs to be edited to 0 stock and have the Sold Out Status changed too? "I don't understand what do you mean with the quality in the front end. the mod from mmwfrank "Some link here..." in the front end of the cart if i change the quaintly the price reappeared $0 thanks
zara LiteCart Fan Alates Australia Liige alates zara 28 aug 2023 06:12 mmwfrank, i tried a few times. the layout breaks. any ideas?
zara LiteCart Fan Alates Australia Liige alates zara 28 aug 2023 06:34 for some reason this fixed it? but is it right? removed [b]"[/b] <?php if ($final_price == 0) { echo '<div style=[b]"display: flex>[/b] put custom "Contact Me Link" here</div>'; }else{ ?>
mmwfrank Developer Alates United States Liige alates mmwfrank 28 aug 2023 10:37 Sorry, I still can't help out. I tried removing the same quote mark you did, but it busted the display even worse. Guess it's gonna take someone smarter than us to solve this.
zara LiteCart Fan Alates Australia Liige alates zara 29 aug 2023 05:10 That's odd. We are getting different results. The layout is OK on my end but the price\contact part is gone. It could be the location the new text is being put breaking the layout? <?php if ($final_price == 0) { echo '<div style="display: flex> put custom "Contact Me Link" here</div>'; }else{ ?>
mmwfrank Developer Alates United States Liige alates mmwfrank 30 aug 2023 18:06 This seems to work, try this, change: <?php } ?> </a> </div> <?php } ?> <?php if ($cheapest_shipping_fee !== null) { ?>``` To: ```<h3><?php echo $manufacturer['name']; ?></h3> <?php } ?> </a> </div> <?php } ?> <?php if ($final_price == 0) { echo '<button>Click For Order Information</button>'; }else{ ?> <?php if ($cheapest_shipping_fee !== null) { ?>``` And this: ```<div class="out-of-stock-notice"> <?php echo language::translate('description_item_is_out_of_stock', 'This item is currently out of stock and cannot be purchased.'); ?> </div> <?php } ?> <div class="social-bookmarks text-center">``` To: ```<div class="out-of-stock-notice"> <?php echo language::translate('description_item_is_out_of_stock', 'This item is currently out of stock and cannot be purchased.'); ?> </div> <?php } ?> <?php } ?> <div class="social-bookmarks text-center">``` Good luck, let me know...
zara LiteCart Fan Alates Australia Liige alates zara 31 aug 2023 03:50 looks like it working! :) thanks
zara LiteCart Fan Alates Australia Liige alates zara 4 sept 2023 15:52 hi any chance you know how to keep the cell\boarder and have the contact links inside? this may be part of the page breaking issue, as the new bits are not bound?
zara LiteCart Fan Alates Australia Liige alates zara 5 sept 2023 09:29 should be all working ok now, see add-on https://www.litecart.net/en/addons/594/hide-price-if-zero-0-mod-zero-0-stock-contact-button