Show Posts


Messages - masalachai

Pages: [1] 2
1
General Support / Re: Sort order of Featured Product page?
« on: July 22, 2021, 12:19:44 PM »
Thanks again Basara for the reply.  I *think* I found the section storefront/model/catalog/product.php
As I suspected, the products are being sorted by date_available (line 773) so that's why the clones are going to the end of the page and the new entries to the top. Haven't figured out what the SQL is to change date_available to product_descriptions.name with all the joins going on, so if anybody knows, it'd be much appreciated. Thanks again!

2
General Support / Re: Sort order of Featured Product page?
« on: July 22, 2021, 03:40:03 AM »
Thanks for the reply Basara! Sorry, I mispoke - I have the Featured Product checkbox checked for all our products so that they all show on the home page (114 total).  Right now they seem to be sorted by date entered, though if I clone a product, then those products go to the bottom of the page. Anyhow. Using v.1.2.9.  Would like them to be sorted alphabetically (just like the Products are listed in the Admin -> Catalog -> Products). Thanks again!

3
General Support / Sort order of Featured Product page?
« on: July 21, 2021, 04:21:27 PM »
Hi.
Changing the sort order in System -> Settings -> General -> Sort Products as default by:
Unfortunately, has no effect on the Featured Product page which is where all our products are shown (all the drop downs don't change a thing).
Anybody know what needs to be changed to get the Featured Product page to sort A-Z for example?

Thanks!


4
Support / Re: Add BCC to email send?
« on: August 02, 2018, 01:11:41 PM »
> It is so easy to set copy/resend to any email in your Mail server/service

Huh? How does this have anything to do with solving the bounce "no-reply@example.com" problem?

5
Support / Re: Add BCC to email send?
« on: August 01, 2018, 12:53:08 PM »
Something like Contact 7 “Additional Headers” perhaps?

6
Support / Re: Add BCC to email send?
« on: July 30, 2018, 06:06:20 AM »
Thanks abolabo for the reply! Good to hear from one of the developers.  Sorry, but I've never heard of the "chain rule" for email or why/how that would be better than just using BCC. Can you please provide an example or further explanation? Thanks again!

7
Support / Re: Add BCC to email send?
« on: July 28, 2018, 04:25:59 PM »
Thanks Lee, I did check out the notification biz first and found that the problem with the alert approach is every email bounces on the no-reply@example.com, right? This would not be a problem using BCC or CC. Don't know why AbanteCart doesn't have BCC and CC since they're about as standard as email headers go and have been around forever. I can only conclude the absence as simply an oversight by the developers.  Hopefully it'll be corrected in future versions.

8
Support / Re: Add BCC to email send?
« on: July 28, 2018, 03:34:22 PM »
Thanks Lee. Unfortunately, that doesn't work because our store email is no-reply@example.com. Also, we want to get an exact copy of the email sent to the customer (not just an alert, hence the need for BCC). From what I can tell, it looks like AbanteCart is using PHPMailer (https://github.com/PHPMailer/PHPMailer), but for some reason is missing the CC and BCC variables. I could do (have done) this easily enough in straight PHP by modifying the mail headers, but hacking PHPMailer isn't as obvious.  Thanks again!

9
Support / Add BCC to email send?
« on: July 28, 2018, 01:18:05 AM »
How do you add a BCC address to the customer email send? Anybody know? Thanks!

10
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 23, 2018, 11:09:45 AM »
Thanks Lee. The drop down for Zone and the drop down for Country are for some reason coded differently. For the Country drop down the countries are all piped in to guest_step_1.php and can be seen using view source in the browser.  That's not the case for Zone. Not sure how or where all the zones are coming from (I know they're in MySQL and I suspect it's one of the JavaScript files that is populating guest_step_1.php via "--- Please Select ---"), but as far as the rendered HTML is concerned, it's missing the "selected" attribute and I couldn't see any other way but to hard code the fix. Also, as far as upgrading goes, at this point our AbanteCart is heavily modified and doing what we need it to do.  Unless there's an immediate security issue or other incompatibility I tend not to upgrade my modified web apps, often for many years. I know that's not the norm, but if an app is working, why spend time rebuilding the thing over and over just because there's an update?

Thanks again!

11
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 23, 2018, 01:21:20 AM »
Got it!
[guest_step_1.tpl]

<h1 class="heading1">
  <span class="maintext"><?php echo $heading_title; ?></span>
  <span class="subtext"></span>
</h1>

<?php if ($success) { ?>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $success; ?>
</div>
<?php } ?>

<?php if ($error_warning) { ?>
<div class="alert alert-error alert-danger">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $error_warning; ?>
</div>
<?php } ?>

<div class="contentpanel">
   <?php echo $form['form_open']; ?>

   <h4 class="heading4"><?php echo $text_your_details; ?></h4>
   <div class="registerbox form-horizontal">
      <fieldset>
               <div class="form-group ">
            <label class="control-label col-md-4">First Name:</label>
            <div class="input-group col-md-6">
                <input type="text" name="firstname" id="guestFrm_firstname" value="" placeholder="" class="form-control "   />
<span class="input-group-addon"><span class="required">*</span></span>
            </div>
            <span class="help-block"></span>
         </div>      
               <div class="form-group ">
            <label class="control-label col-md-4">Last Name:</label>
            <div class="input-group col-md-6">
                <input type="text" name="lastname" id="guestFrm_lastname" value="" placeholder="" class="form-control "   />
<span class="input-group-addon"><span class="required">*</span></span>
            </div>
            <span class="help-block"></span>
         </div>      
               <div class="form-group ">
            <label class="control-label col-md-4">E-Mail:</label>
            <div class="input-group col-md-6">
                <input type="text" name="email" id="guestFrm_email" autocorrect="off" autocapitalize="off" value="" placeholder="" class="form-control "   />
<span class="input-group-addon"><span class="required">*</span></span>
            </div>
            <span class="help-block"></span>
         </div>
         <div class="hide">      
         <div class="form-group ">
            <label class="control-label col-md-4">State</label>
            <div class="input-group col-md-6">
                <input type="text" name="zone_id" id="guestFrm_zone_id" value="3624" placeholder="" class="form-control "   />
<span class="input-group-addon"><span class="required">*</span></span>
            </div>
            <span class="help-block"></span>
         </div>      
         <div class="form-group ">
            <label class="control-label col-md-4">Country</label>
            <div class="input-group col-md-6">
                <input type="text" name="country_id" id="guestFrm_country_id" value="223" placeholder="" class="form-control "   />
<span class="input-group-addon"><span class="required">*</span></span>
            </div>
            <span class="help-block"></span>
         </div>
         </div>      
            </fieldset>
   </div>   
<div class="hide">
   <h4 class="heading4"><?php echo $text_your_address; ?></h4>
   <div class="registerbox form-horizontal">
      <fieldset>
      <?php
         $field_list = array('company' => 'company',
                        'address_1' => 'address_1',
                        'address_2' => 'address_2',
                        'city' => 'city',
                        'zone' => 'zone_id',
                        'postcode' => 'postcode',
                        'country' => 'country_id',
                        );
         
         foreach ($form['fields']['address'] as $field_name=>$field) {?>
         <div class="form-group <?php if (${'error_'.$field_name}) echo 'has-error'; ?>">
            <label class="control-label col-md-4"><?php echo ${'entry_'.$field_name}; ?></label>
            <div class="input-group col-md-6">
                <?php echo $field; ?>
            </div>
            <span class="help-block"><?php echo ${'error_'.$field_name}; ?></span>
         </div>      
      <?php }
         echo $this->getHookVar('address_entry_section'); ?>

         <div class="form-group">
            <label class="control-label col-md-4"></label>
            <div class="input-group col-md-6">
                <?php echo $form['shipping_indicator']; ?>
            </div>
         </div>      
      </fieldset>
   </div>
         
   <!-- start shipping address -->
   <div id="shipping_details" style="<?php echo ($shipping_addr) ? 'display:block;' : 'display:none;' ?>">
   <h4 class="heading4"><?php echo $text_shipping_address; ?></h4>
      <div class="registerbox form-horizontal">
      <fieldset>
      <?php
         $field_list = array('firstname' => 'shipping_firstname',
                        'lastname' => 'shipping_lastname',
                        'company' => 'shipping_company',
                        'address_1' => 'shipping_address_1',
                        'address_2' => 'shipping_address_2',
                        'city' => 'shipping_city',
                        'zone' => 'shipping_zone',
                        'postcode' => 'shipping_postcode',
                        'country' => 'shipping_country',
                        );
         
         foreach ($form['fields']['shipping'] as $field_name=>$field) {
      ?>
         <div class="form-group <?php if (${'error_'.$field_id}) echo 'has-error'; ?>">
            <label class="control-label col-md-4"><?php echo ${'entry_'.$field_name}; ?></label>
            <div class="input-group col-md-6">
               <?php
                     echo $field;
                  ?>
            </div>
            <span class="help-block"><?php echo ${'error_'.$field_id}; ?></span>
         </div>      
      <?php
         }
      ?>   
      </fieldset>
      </div>     
   </div>
   <!-- end shipping address -->     
      </div>
   <div class="form-group">
       <div class="col-md-12 mt20">
          <button class="btn btn-orange pull-right lock-on-click" title="<?php echo $form['continue']->name ?>" type="submit">
              <i class="fa fa-arrow-right"></i>
              <?php echo $form['continue']->name ?>
          </button>
          <a href="<?php echo $back; ?>" class="btn btn-default mr10" title="<?php echo $form['back']->text ?>">
              <i class="fa fa-arrow-left"></i>
              <?php echo $form['back']->text ?>
          </a>
       </div>
   </div>
   </form>
</div>

<script type="text/javascript">

$('#guestFrm_shipping_indicator').change( function(){
   (this.checked) ? $('#shipping_details').show() : $('#shipping_details').hide();
});
<?php $cz_url = $this->html->getURL('common/zone', '&zone_id='. $zone_id); ?>
$('#guestFrm_country_id').change(function() {
    $('select[name=\'zone_id\']').load('<?php echo $cz_url;?>&country_id=' + $(this).val());
});
$('select[name=\'zone_id\']').load('<?php echo $cz_url;?>&country_id='+$('#guestFrm_country_id').val());

<?php $cz_url = $this->html->getURL('common/zone', '&zone_id='. $shipping_zone_id); ?>
$('#guestFrm_shipping_country_id').change(function() {
   $('select[name=\'shipping_zone_id\']').load('<?php echo $cz_url;?>&country_id=' + $(this).val());
});
$('select[name=\'shipping_zone_id\']').load('<?php echo $cz_url;?>&country_id='+$('#guestFrm_shipping_country_id').val());

</script>

12
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 21, 2018, 05:52:23 PM »
Thanks Lee - did you try selecting California?  I did several times (as well as cleared server cache and whatever else I could think of), didn't make a difference.
Still getting "--- Please Select ---" (see second screenshot)

For our purposes, we only need three fields in the form: First Name, Last Name, Email (see first screenshot). Until the sales tax biz came along, form worked great (I simply hid the other fields using CSS and the form passed all the way through to checkout, no problem). Now that we need sales tax (which is governed by the Region / State field), I need to somehow not be prompted by the State dropdown.  I know now that it's the guest_step_1.php page that needs to be modified (guest_step_1.tpl is part of it), so will keep tinkering until I figure it out.

13
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 21, 2018, 04:45:33 PM »
Not sure I'm even editing the right page anymore... I *thought* it was guest_step_1.tpl, but no matter what I do it still shows all the shipping fields - even after I delete them!
What file is index.php?rt=checkout/guest_step_1 calling from??

14
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 21, 2018, 03:57:12 PM »
hmmm... I selected California, same as before - still have to choose from drop down

15
Support / Re: Add 8.5% Sales Tax for Cash Transactions?
« on: July 21, 2018, 02:53:18 PM »
Thanks! I just figured out where the problem is - it's the drop down choose State.  If I don't choose California, then tax doesn't carry through.  Would prefer to have California selected by default (just like United States is for the Country field).  Do you know what file the states are coming from or how to hard code that in guest_step_1.tpl [storefront/view/default/template/pages/checkout]
Thanks again for all your help with this!

Pages: [1] 2

Powered by SMFPacks Social Login Mod