Jump to content

 

Sekhar

Member Since 17 Apr 2015
Offline Last Active Jul 01 2015 10:44 AM
-----

Posts I've Made

In Topic: API helper class for CS-Cart 4 - FREE

24 June 2015 - 05:51 AM

To update/create an image for a product you shoud add a "detailed" key.
The only require parameter is "image_path"

  "main_pair": {
	"detailed": {
	  "image_path": "http://vmalyshev.u.simtech/staging/images/detailed/0/173283_0113298267324f438bac97eaf.jpg",
	}
  },


Hi sir,
I am trying to upload an image from mobile using an api where I used fn_attach_image_pairs() function
But I don't know how the parametres are passed..In my app, I have to upload multiple images by browsing from gallery.
How can I use image_path?
Is the main_pair is an individual object or should i specify inside an object?
something like..
{"main_pair":{"detailed":{"image_path":"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Fiat_Palio_in_Paraty.jpg/280px-Fiat_Palio_in_Paraty.jpg"}}}

In Topic: How To Add An Addon For Vendors

23 June 2015 - 12:28 PM

Hello sir can I have a help in the image uploading from a mobile using api
I have created an api for creating a vendor profile from mobile..everything going smooth but I don't know what are the parameters should I pass inorder to upload images

I want to use cs-cart image upload function fn_attach_image_pairs
What are the different parameters i need to use in POST/PUT method

Please help me

Thanks and Regards

In Topic: How To Add An Addon For Vendors

22 June 2015 - 02:35 PM

Sir,
Now I am able to see my desired controller link in vendor login..but can I do the same trick by changing the permission inside my addon?

Once again thanks a ton for your 1st reply.

In Topic: How To Add An Addon For Vendors

22 June 2015 - 02:23 PM

Sir..thanks for reply...but I still unable to sort out this issue.. I will give some of my code for my addon so that you can solve my problem easily

I added an addon

$schema['top']['addon_name']['items']['menu_option1'] = array(
'href' => 'menu_option1.manage'
);
$schema['top']['addon_name']['items']['menu_option2'] = array(
'href' => 'menu_option2.manage'
);


Now I want to give access to "menu_option2" file along with menu link at same place in a vendor login

Please help me...so that I can complete my project as i have already completed all the implementation except this.
also I have to code everything inside my addon by without disturbing the default cs-cart files.. so can I add the given code inside amy addon?

In Topic: Adding New Menu Item In Admin

25 April 2015 - 07:51 AM

Hai,I have created new menu item with your help in app/addons/vehicles/schemas/menu/menu.post.php

But in my menu it is showing "_vehicles"
How can i change this to "Vehicles"?

Please Help me in this.