Jump to content

qatifserv

Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by qatifserv

  1. any way to apply this to the quotes ?

    I tried to write this to the controller but still doesn't work

    	
    	/**
    	 * Get Quotes count
    	 */
    	public function count_quotes() 
    	{
    		// Ensure a valid Status
    		if (isset($this->get[0])) {
    			$status = $this->get[0];
    		} else {
    			$status = "open";
    		}
    
    		if ($this->isAjax()) {
    			// Load Model Only When we Need it !!!
    			$this->uses(["QuotesSystem"]);
    			
    			$response = $this->QuotesSystem->getStatusCount($this->client_id, $status);
    			// JSON encode the AJAX response
    			$this->outputAsJson($response);
    			return false;		
    		}
    		
    		return false;
    	}
    	

    everything else works

  2. So..... after spending more than 2 days trying to solve this problem without crashing the theme and the site I finally came up with a solution..

     

    this is how you let the customer pick the price for a service:

    1- set the initial price to 0.00

    2-  Packages >> Configurable Options >> options

    3- create a new option with the following :

    • Type >> Quantity
    • Client can Add & Client can Edit are enabled
    • set option name & min & max & step to 1
    • price is 1.00 ((( very important so any value the client enters will be multiplied by 1 )))

    4- now identify your order form and edit /plugins /order /views /templates /ajax /javascript /config_packageoptions.js

    5- delete these lines :

    				$(input).slider({
    					value: value,
    					min: min,
    					max: max,
    					step: step,
    					orientation: 'horizontal'
    				}).on('slideStop', function(e) {
    					fetchSummary();
    				});

    save and close.

    now you're done! go check the package as a client and see that there's an extra text field you just created that allows you to plug in any number and it will be used as the final price

    you can also use the value as 1.05 for example when setting up the price for the option to be used as the price + 5% of what the user put down

    hide all of the unnecessary field now on your order template using style="display:none" if you want.. make sure to make the package requires an approval..

    if I came up with any updates I'll post it here..

    this worked perfectly for me.

    To Do :

    • make the field only accept #s

     

     

  3. Hello,

    I was just wondering, it is been awhile since the 3.6.1 came out, is there a new version coming out soon ? what is it gonna have and what's so special about it ?

    Thanks, and merry christmas

  4. Thanks.

    I actually just started working on the translation process (client area, order forms). I'll be sure to translate every sentence correctly and I'll be editing the default Blesta Blue style to be working well with Arabic and then I'll upload them both here. I expect to be done with all of that this week.

×
×
  • Create New...