Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/design/frontend/Cnc/default/Magecomp_Savecartpro/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/design/frontend/Cnc/default/Magecomp_Savecartpro/templates/view.phtml
<?php
$cartitems = $block->getCartAllItems();
if (count($cartitems > 0)) : ?>
	<form action="<?= $block->escapeUrl($block->getUrl('savecartpro/index/save')) ?>"
          method="post"
          id="savecartform"
          name="savecartform"
          class="form form-cart">
		<?= $block->getBlockHtml('formkey'); ?>
		<h3><?= $block->escapeHtml(__('Selected Products From Your Cart')); ?></h3>
        <div id="viewmaindiv">
            <div class="headerclass left"><?= $block->escapeHtml(__('Products')); ?></div>
            <div class="headerclass right"><?= $block->escapeHtml(__('Qty')); ?></div>
            	<?php $count = 0; foreach ($cartitems as $item) : ?>
                	<div class="detailclass left"><?= $block->escapeHtml($item->getName()); ?></div>
                    <div class="detailclass right">
                        <input type="text"
                               id="qty[<?php echo $count; ?>]"
                               name="qty[<?php echo $count; ?>]"
                               value="<?= $block->escapeHtmlAttr($item->getQty()); ?>"
                               data-validate="{required:true,'validate-greater-than-zero':true}" /></div>
                <?php $count++; endforeach; ?>
        </div>
        <fieldset class="fieldset info">
            <div class="field required">
                <label class="label mylabel"
                       for="cartname">
                    <span><?= $block->escapeHtml(__('Cart Title')); ?></span>
                </label>
                <textarea id="cartname"
                          name="cartname"
                          data-validate="{required:true}"></textarea>
            </div>
            <button type="submit"
                    name="submit_qty_action"
                    value="update_qty"
                    title="<?= $block->escapeHtmlAttr(__('Save My Cart')); ?>"
                    class="action update">
                <span><?= $block->escapeHtml(__('Save My Cart')); ?></span>
            </button>
        </fieldset>
	</form>
<script type="text/x-magento-init">
 {
	  "#savecartform": {
		  "validation": {}
	  }
  }
</script>
<?php endif; ?>

Spamworldpro Mini