Jump to content

brian_cee

Members
  • Content count

    113
  • Joined

  • Last visited


Reputation Activity

  1. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    There is no problem to use html e-mails
  2. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    It's not that easy. The newsletter manager uses the account data (Customer Name, E-Mail) to send the newsletters. As there is no account data for guests, it would need to be modified to use a new separate table for guest subscribers. The guests newsletter subscribers data (name, e-mail) would need to be stored in that table on checkout succes and a new module added for guest subscribers.
    It would be much easier to use mailchimp and add a checkout success module to subscribe via mailchimp or use the existing navbar mailchimp module and trigger the mailchimp subscribe popup in checkout success.
  3. Like
    brian_cee reacted to Dan Cole in OSC 2.3.4 bs and SMTP email   
    I have SSL enabled...in fact my whole site is SSL and sendmail works just fine.
    Dan
  4. Like
    brian_cee reacted to Dan Cole in OSC 2.3.4 bs and SMTP email   
    It has been awhile but I think I added that line in addition to wdepot's fix....if you google for it there is another thread on the Return Path issue that might be a little more helpful.   As I recall I'm just using the standard osC mail function with those return path changes.  My email transport method is just set to sendmail.
    Dan
  5. Like
    brian_cee reacted to Jack_mcs in [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo   
    In the meantime, for those using Header Tags SEO, you can display the name of the item in the breadcrumb or make up your own. There is also an option to include the model number.
  6. Like
    brian_cee reacted to raiwa in State Selector for BS   
    Hello Brian @brian_cee,
    There are several ways to do this. You can find info and hints in the following thread:
    https://forums.oscommerce.com/topic/412513-set-default-country-for-customers
    One easy way would be to set your store country as default for the zone query, simplify the zone block to show always the menu. Then set the store country as default selected in the countries menu and disable the countries menu:
    <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div class="col-sm-9"> <?php $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . STORE_COUNTRY . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span id="atState" class="help-block">' . ENTRY_STATE_TEXT . '</span>'; ?> </div> </div> <?php } ?> <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php echo tep_get_country_list('country', STORE_COUNTRY, 'required disabled aria-required="true" aria-describedby="atCountry" id="inputCountry"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div> </div>  
  7. Like
    brian_cee reacted to 14steve14 in Purchase without account for 2.3.4 and BS2334   
    If you feel that transferring your data from one version to the other is too complicated, then pay someone to do it. Thats what I did and it was no where near as expensive as I thought it would be. It was also done quickly so the store was not down for long.
  8. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    Hi Brian @brian_cee,
    Just uploaded the new version 2.5r2 with the fixes you reported:
    https://apps.oscommerce.com/5f3nn&purchase-without-account-bs
  9. Like
    brian_cee got a reaction from raiwa in Purchase without account for 2.3.4 and BS2334   
    Absolutely. Afterwards I saw that I also needed to change Line 171 from:
    <p class="col-xs-9"><?php echo tep_output_string_protected($customer['customers_name'] ); ?></p>
    to:
    <p class="col-xs-9"><?php echo tep_output_string_protected(strstr($customer['customers_name'], ' ', true)); ?></p>
    Because when a customer clicks the link to write a review, it was displaying their last name, and they might be scared off of leaving a review, not knowing that their last name wouldn't actually show up......if that makes sense, anyway, it looks like it works fine, so thanks for explaining how to do it.........
     
     
     
     
     
     
  10. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    Not sure here what you are concerned for.
    Guests can only write a review if they have made a purchase and following the link they get in the order confirmation mail.
    Other visitors can only write a review if they have an account. It's true that registered users can write reviews on any product, even they didn't purchase it.
    So if I understand right, you do not offer the possibility to create a regular account, I guess you have the standard create account module uninstalled for this.
    So if you just wish to hide the "Write review" button in product_reviews.php, you need to comment out or remove the relevant code:
    <div class="col-xs-6 text-right"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'fa fa-commenting', tep_href_link('product_reviews_write.php', tep_get_all_get_params()), 'primary', NULL, 'btn-success'); ?></div>  
  11. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    OK, I didn't know that you only use guest checkouts, I thought you wanted to supress the lastnames showing on the product_reviews.php page and keep the complete name in the database to be able to see it in admin.
    In product_reviews_write_pwa.php  the customer name is retrieved from the orders data not from the customers account bacause it doesn't exist for guests.
    In the order data the customer first and second name is merged into one field called customers_name. So it is not so easy to strip the customers second name and leave only the first name as it is in product_reviews_write where 2 separate fields exist (customers_firstname_and customers_lastname).
    The relevant line in product_reviews_write_pwa.php  is line 79:
          tep_db_query("insert into reviews (products_id, customers_id, customers_name, customers_guest, reviews_rating, date_added) values ('" . (int)$_GET['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_name']) . "', '1', '" . tep_db_input($rating) . "', now())");
    tep_db_query("insert into reviews (products_id, customers_id, customers_name, customers_guest, reviews_rating, date_added) values ('" . (int)$_GET['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input($customer['customers_name']) . "', '1', '" . tep_db_input($rating) . "', now())"); You see that there is only the entrance $customer['customers_name'].
    So what is possible to use a php function strip everything following the first whitespace of the name and leave like this only the firstname. Only issue maybe that there are customers with 2 firstnames, so the second firstname would also be stripped off.
    The function you need is strstr(... see freference:
    http://php.net/manual/en/function.strstr.php
    So change line 79 to:
    tep_db_query("insert into reviews (products_id, customers_id, customers_name, customers_guest, reviews_rating, date_added) values ('" . (int)$_GET['products_id'] . "', '" . (int)$customer_id . "', '" . tep_db_input(strstr($customer['customers_name'], ' ', true)) . "', '1', '" . tep_db_input($rating) . "', now())"); hope this is what you wanted.
    regards
    Rainer
  12. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    for now the language file is still needed. See in account_pwa.php:
    require('includes/languages/' . $language . '/account_pwa.php');  
  13. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    Yes, that's it
  14. Like
    brian_cee reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    You should start over
  15. Like
    brian_cee reacted to Tsimi in State Selector for BS   
    @brian_cee
    Just hide the country input field if you only ship domestic. You can hide it by using the hidden class. See link below.
    class="hidden"
     
  16. Like
    brian_cee reacted to raiwa in State Selector for BS   
    just keep the integrity of these 2 blocks and move the complete country block, below the state block.
    Country block:
    <div class="form-group has-feedback"> <label for="inputCountry" class="control-label col-sm-3"><?php echo ENTRY_COUNTRY; ?></label> <div class="col-sm-9"> <?php if ( !isset($country) && MODULE_HEADER_TAGS_GET_STATES_DEFAULT_COUNTRY == 'True' ) { $country = STORE_COUNTRY; } echo tep_get_country_list('country', $country, 'onChange="getState(this.value)" required aria-required="true" id="inputCountry"'); echo FORM_REQUIRED_INPUT; if (tep_not_null(ENTRY_COUNTRY_TEXT)) echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>'; ?> </div> </div>  
    State block:
    <?php if (ACCOUNT_STATE == 'true') { ?> <div class="form-group has-feedback"> <label for="inputState" class="control-label col-sm-3"><?php echo ENTRY_STATE; ?></label> <div id="results" class="col-sm-9"> <?php $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'"); $check = tep_db_fetch_array($check_query); $entry_state_has_zones = ($check['total'] > 0); if ($entry_state_has_zones == true) { $zones_array = array(); $zones_array[0] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); $zones_query = tep_db_query("select zone_name from zones where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array, '', 'required aria-required="true" id="inputState"'); echo FORM_REQUIRED_INPUT; } else { echo tep_draw_input_field('state', NULL, 'id="inputState" class="form-control" required aria-required="true" placeholder="' . ENTRY_STATE . '"'); echo FORM_REQUIRED_INPUT; } if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>'; ?> </div> </div> <?php } ?> </div>  
  17. Like
    brian_cee reacted to raiwa in State Selector for BS   
    Hello,
    Did you apply the modifications for create_account.php as described in the installation also to account_pwa.php ?
    regards
    Rainer
×