Jump to content


Corporate Sponsors


Latest News: (loading..)

discxpress

Member Since 25 Feb 2005
Offline Last Active Apr 11 2012, 05:20
-----

Topics I've Started

Update products through XML?

02 March 2012, 04:16

Hello,

I'm using version 2.3. I'm in search of an addon that will allow the update of products by importing an XML file. I would like the import to have the capability to update the price, title, quantity and dates. Also any custom fields through some mapping features.

Basically I'm looking for an alternative to Easypopulate. I'm trying to update my website with data dumps from Discogs. Their dumps are in XML format but can't be loaded into Excel because of some double header malfunction. I know there's an addon that will update the price and quantity so it'll have to be tweaked to accommodate my needs. I'm a novice when it comes to php programming.

Has anyone successfully accomplished anything similar to my request?

Thanks for reading.

kicked from chat can't get back in

24 January 2012, 19:24

Hello,

I've been kicked out the chatroom for no apparent reason. I wasn't breaking any rules and I was chatting with someone. I tried logging out the forums and logging back in but no success.

Thanks for any help

OSC 2.3 Google Adsense code and SSL issues.

17 January 2012, 18:58

Hello,

I'm using version 2.3 and the Google Adsense code in the infobox is causing "unsecure content" problems in all browsers.

I found this code on the forums but it's for version 2.2:
<?php
if ($request_type != 'SSL') {
?>
Your Google provided javascript goes here...
<?php
}
?>

I'm not sure how to apply that code to OSC 2.3.

Here's the code for includes/modules/boxes/bm_adsense.php:
<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2010 osCommerce
  Released under the GNU General Public License
*/
  class bm_adsense {
    var $code = 'bm_adsense';
    var $group = 'boxes';
    var $title;
    var $description;
    var $sort_order;
    var $enabled = false;
    function bm_adsense() {
	  $this->title = MODULE_BOXES_ADSENSE_TITLE;
	  $this->description = MODULE_BOXES_ADSENSE_DESCRIPTION;
	  if ( defined('MODULE_BOXES_ADSENSE_STATUS') ) {
	    $this->sort_order = MODULE_BOXES_ADSENSE_SORT_ORDER;
	    $this->enabled = (MODULE_BOXES_ADSENSE_STATUS == 'True');
	    $this->group = ((MODULE_BOXES_ADSENSE_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right');
	  }
    }
    function dataF() {

  $data = '<div style="text-align:center;">';
  $data .= MODULE_BOXES_ADSENSE_CODE;
  $data .='</div>';

  return $data;
}

function execute() {
  global $oscTemplate;

  $oscTemplate->addBlock($this->dataF(), $this->group);
}
    function isEnabled() {
	  return $this->enabled;
    }
    function check() {
	  return defined('MODULE_BOXES_ADSENSE_STATUS');
    }
    function install() {
	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable adsense Module', 'MODULE_BOXES_ADSENSE_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_ADSENSE_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())");
	  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_ADSENSE_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
	  tep_db_query( "insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ( 'adSense code', 'MODULE_BOXES_ADSENSE_CODE', '', 'Paste the adSense code into here', '6', '4', 'tep_draw_textarea_field(\'configuration[MODULE_BOXES_ADSENSE_CODE]\', false, 35, 20, ', now())" );
    }
    function remove() {
	  tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }
    function keys() {
  return array('MODULE_BOXES_ADSENSE_STATUS', 'MODULE_BOXES_ADSENSE_CONTENT_PLACEMENT', 'MODULE_BOXES_ADSENSE_SORT_ORDER', 'MODULE_BOXES_ADSENSE_CODE');
}
  }
?>


Thanks for any help.

Need help: Clear input field clicked inside

26 December 2011, 10:18

Hello,

I'm needing help coding an input field that when you click inside the text already inside disappears so you can enter your info in the field.

I've tried "onClick", "onFocus", and "onBlur". No luck. Also, I've tried modifying code from other forms.

Please help. Thanks for your time.

Traffic Pops? Will they help us?

20 November 2011, 22:45

Hello,
I discovered a new concept on a php script site that sounds interesting but could be lethal. They're called Traffic Pops. They were originally designed for Wordpress blogs but the author have coded them to be integrated into websites also.

From my understanding, when a visitor enters a website a box appears asking them to share content on a social network. However, the visitor must either close the box or click on a Facebook, Twitter or Google +1 button to proceed. There is also an option to wait a few seconds and box will close automatically. Here's the kicker. The visitor must do one of those actions before they can use the website.

Sounds a bit intrusive, doesn't it? I think that would be great if the visitor clicks on a link to exit the page. The box should appear asking the visitor to share the content if they found it useful. Also, it should be the choice of the visitor of when the box closes not having to wait. The shop owner should ask, "Please share this page with your friends or close this box now" upon exit of the page/website.

I think it is a good way to help a website's content go viral if applied at the right point during the visit. But it would be damaging if the box seems intrusive to the visitor.

Please do some research and give your thoughts.

Thanks for reading.